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

I am working on a VS2010 machine to develop web parts for a MOSS 2007 server that has MS Project Server installed on it. I am trying to get a sample Impersonation application running on it. I am following this article.

However, when I try to connect to SSP, it throws an error as 401.2 Unauthorized. I am working on a VPC with Admin login and Admin right to Sharepoint, MS Project Server. Please let me know what wrong I am doing.

share|improve this question
up vote 1 down vote accepted

Either You need to add the yourself (or username you logged in with) to the SSP which hosts Project Web Access, or the SSP is not configured to process the user's account.

Try either or both step 1 or 2.

Step 1

Add the user to the SSP site with contribute access.

Step 2

To enable the SSP to process accounts, run the following stsadm Command.

stsadm -o editssp -title [SSPName] -setaccounts [accounts to add]
share|improve this answer
will try and let you know! – Nitesh Nov 18 '11 at 15:30
Amit, any link/process to do step 1? – Nitesh Nov 18 '11 at 15:33

SharePoint 2007 and MOSS 2007 are built on ASP.Net 2.0. The default ASP.NET version of VS2010 is 4. So maybe there's the problem.

If the problem is in your code, try to add a this (if you use c#)

  //Your code
catch (Exception ex)
  //Log error
share|improve this answer
I checked this and this is not a problem.. – Nitesh Nov 18 '11 at 15:30
Did you try both? Or only the try catch? – Ruben Herman Nov 18 '11 at 15:31
I tried both..I also tried it with VS2005 but no luck.. – Nitesh Nov 18 '11 at 15:32

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.