Error calling PSI LoginWindows.Login method

K

Kannan

I installed project server 2007 in my VPC. i created a local account and used
this account to install Project server 2007. This account is the admin in the
VPC. This account is also an admin of the created PWA, SSP. All the
application pools run under this account. This account is able to browse
through the PWA and the web services through IE. The following is what i did

1. Created a sample windows application in VS 2008
2. Added a web reference to the LoginWindows web service.
3. I use the following code piece to call the login method

LoginWindows.LoginWindows loginService = new LoginWindows.LoginWindows();
loginService.Credentials = CredentialCache.DefaultCredentials
bool chkLogin = loginService.Login()

When the above piece of code is executed, i get the following error logged
in the event log

PSI Auth: SiteId ca885ad8-c0dc-4184-9027-980ed84c7c86 was not found in the
ProjectSiteCollection for this SSP

I am completely stuck up with this error. Please help
 
S

Stephen Sanderlin [MVP]

It doesn't look like you're setting the URL property of loginService... set
this to the URL where the LoginWindows service resides. See the sample code
at
http://msdn.microsoft.com/en-us/library/websvcloginwindows.loginwindows.login.aspx.

--
Stephen Sanderlin, Project MVP
VP of Technology
MSProjectExperts

For Project Server Consulting: http://www.msprojectexperts.com
For Project Server Training: http://www.projectservertraining.com

Read our blog at: http://www.projectserverhelp.com

Learn | Connect | Grow @ The Microsoft Project Conference Phoenix, AZ -
September 14-17, 2009
 

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