S
s1mm0t
Hi,
I have been using PSI web services to integrate a .NET 2.0 enterprise
application that I'm working on with project server 2007. I have successfully
used it, to amongst other things, create projects, check projects in/out,
publish project and update enterprise resources etc.
I have got a new requirement to check projects out to a specific user rather
than the admin user that my application is configured to login to project
server as. After some searching it seemed that impersonation was the way to
go, but I'm having problems - I continually get "401 unauthorized".
I found the following link:
http://msdn.microsoft.com/en-us/library/aa974413.aspx which is pretty much
what I want to do but I have been unable to get this working. Due to the set
up of our environment I am having to create a new network credential
specifying the username, password and domain, rather than using the default
credentials otherwise my code is exactly the same. When I try to make a call
to the SSP web service I get a "401 unauthorized" error.
I found this page: http://msdn.microsoft.com/en-us/library/bb428835.aspx and
followed the steps to add a user and configure the SSP for processing
accounts - in both cases I added the administrator user that I have been
trying to connect with, but this still doesn't work.
I have obviously spent time searching for a solution to this problem before
posting here, but the closest I could find to a solution was this post:
http://www.eggheadcafe.com/software/aspnet/34636465/impersonation-and-401.aspx.
This describes the exact same problem that I am having and also (re)-posts
the code that I have been using. Unfortunately, there is no solution.
Thanks for your time.
Simon
I have been using PSI web services to integrate a .NET 2.0 enterprise
application that I'm working on with project server 2007. I have successfully
used it, to amongst other things, create projects, check projects in/out,
publish project and update enterprise resources etc.
I have got a new requirement to check projects out to a specific user rather
than the admin user that my application is configured to login to project
server as. After some searching it seemed that impersonation was the way to
go, but I'm having problems - I continually get "401 unauthorized".
I found the following link:
http://msdn.microsoft.com/en-us/library/aa974413.aspx which is pretty much
what I want to do but I have been unable to get this working. Due to the set
up of our environment I am having to create a new network credential
specifying the username, password and domain, rather than using the default
credentials otherwise my code is exactly the same. When I try to make a call
to the SSP web service I get a "401 unauthorized" error.
I found this page: http://msdn.microsoft.com/en-us/library/bb428835.aspx and
followed the steps to add a user and configure the SSP for processing
accounts - in both cases I added the administrator user that I have been
trying to connect with, but this still doesn't work.
I have obviously spent time searching for a solution to this problem before
posting here, but the closest I could find to a solution was this post:
http://www.eggheadcafe.com/software/aspnet/34636465/impersonation-and-401.aspx.
This describes the exact same problem that I am having and also (re)-posts
the code that I have been using. Unfortunately, there is no solution.
Thanks for your time.
Simon