B
Bernie E
I need some help. I am trying to write an application that imports timesheet
information into tasks when a user submits their timesheet. I have the
import portion working fine from a console application for the current user
(this application is run from my PC hitting the Project Server). I am now
trying to get impersonation working so that I can hook it up to an event.
I have followed all the steps in the How to Write a Simple Impersonation
application. Everything works up to the point where I set the Impersonation
context. After that, if I try to run: Guid impersonatedUserGuid =
resProxyBySSP.GetCurrentUserUid(), I get a 401 unauthorized error. I have
even tried inserting the following code:
ICredentials SSPcred = new NetworkCredential("PSAdminAccount", "AccountPW",
"");
resProxyBySSP.Credentials = SSPcred;
I also get the same 401 error if I run the ProjTool application from my PC
when I try to do Logon As.
How do I solve the 401 problem?
Thanks in advance.
Bernie
information into tasks when a user submits their timesheet. I have the
import portion working fine from a console application for the current user
(this application is run from my PC hitting the Project Server). I am now
trying to get impersonation working so that I can hook it up to an event.
I have followed all the steps in the How to Write a Simple Impersonation
application. Everything works up to the point where I set the Impersonation
context. After that, if I try to run: Guid impersonatedUserGuid =
resProxyBySSP.GetCurrentUserUid(), I get a 401 unauthorized error. I have
even tried inserting the following code:
ICredentials SSPcred = new NetworkCredential("PSAdminAccount", "AccountPW",
"");
resProxyBySSP.Credentials = SSPcred;
I also get the same 401 error if I run the ProjTool application from my PC
when I try to do Logon As.
How do I solve the 401 problem?
Thanks in advance.
Bernie