Can LoginWindows cannot QueueCreateProject [Project Srv 2007 and P

C

Chris

thisis my code:

WebSvcProject.Project project = new WebSvcProject.Project();
const string LOGINWINDOWS = "_vti_bin/PSI/LoginWindows.asmx";
loginwindows.LoginWindows loginWindows = new loginwindows.LoginWindows();
CookieContainer cookies = new CookieContainer();
string baseUrl = "http://comp:27821/ProjectSrv/";
loginWindows.Url = baseUrl +LOGINWINDOWS;
loginWindows.Credentials = CredentialCache.DefaultCredentials;
loginWindows.Login()

WebSvcProject.ProjectDataSet dsProject = new WebSvcProject.ProjectDataSet();
WebSvcProject.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 = "Test Project 12";
dsProject.Project.AddProjectRow(projectRow);
Guid jobGuid = Guid.NewGuid();
project.QueueCreateProject(jobGuid, dsProject, true);

oginWindows.Logoff();


I have checked. I van login and logout. but after calling
project.QueueCreateProject I get error: the request failed with HTTP status
401: unauthorized



Whats wrong??
 

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