Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

When I'm trying to get here:

http://someName.com/_vti_bin/PSI/

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. http://someName.com/_vti_bin/PSI/Project.asmx?wsdl)

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.