How to create a task in Project 2007 by using PSI

C

Chris

I can create and publish projects. Now, I nwant to create a task. I can do
that, I can save it and project can open this, but during checking in I get
the error: correlation blocked. My code is:
webSvcProject1.ProjectDataSet dsProject = new webSvcProject1.ProjectDataSet();
webSvcProject1.ProjectDataSet.ProjectRow projectRow =
dsProject.Project.NewProjectRow();
Guid projectGuid = Guid.NewGuid();
projectRow.PROJ_UID = projectGuid;
projectRow.PROJ_TYPE = (int)PSLibrary.Project.ProjectType.Project;
projectRow.PROJ_NAME = "name";
dsProject.Project.AddProjectRow(projectRow);
webSvcProject1.ProjectDataSet.TaskRow taskRow = dsProject.Task.NewTaskRow();
taskRow.PROJ_UID = dsProject.Project[0].PROJ_UID;
taskRow.TASK_UID = Guid.NewGuid();
taskRow.AddPosition = 0;
taskRow.TASK_NAME = "task";
dsProject.Task.AddTaskRow(taskRow);
Guid jobGuid = Guid.NewGuid();
project.QueueCreateProject(jobGuid, dsProject, false);



What is wrong??????
Does anyone know?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top