SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I'm trying to get here:

all I get is the following error: "This website requires you to log in" ..but I'm logged in as Administrator. (and I can get to a specific location e.g.

The problem is that my WebPart, because of that situation, cannot access any PWA WebService.

I think that the issue is related to the server configuration because it doesn't work only on production server - on dev it works fine.

Any ideas?

share|improve this question
Situation has changed. I've tested this on another Admin account and it has worked. I have no idea why because those accounts are identical. What's more if I put my code (on dev server) wssInterop.Credentials = CredentialCache.DefaultCredentials; in SPSecurity.RunWithElevatedPrivileges block - it crashes and can't connect to WebService. – mwk Dec 19 '12 at 11:28

It is expected behavior to receive a 403 when browsing to the PSI directory.. probably to prevent just anyone listing files on the server.

You must use the full URL (as you noticed): http://server/ProjectServer/_vti_bin/PSI/Project.asmx

If your webpart cannot access the web service, it is because of a different problem.

I've had success using new NetworkCredential(username, password, domain); to use credentials for the service acct. You could also try DefaultNetworkCredential but not sure if that will work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.