J
JCV
I need to make PSI calls in side project 2007 event handlers. However, I am
getting authentication errors trying to call the web services. I seems that
the event handler code is running as the "Network Service" user which has no
privledges in project. How am I suppose to make calls to PSI as this user? Is
there a way to impersonate the user that the event is related to (I'm trying
to add tasks in Project.OnCreated)? Or is there a way to give the service
account user rights in project. I tried setting up a NetworkCredential object
with a username and password hard-coded in and it works but obvisouly that is
not a good solution.
What is the recommend way to call PSI methods inside of events?
getting authentication errors trying to call the web services. I seems that
the event handler code is running as the "Network Service" user which has no
privledges in project. How am I suppose to make calls to PSI as this user? Is
there a way to impersonate the user that the event is related to (I'm trying
to add tasks in Project.OnCreated)? Or is there a way to give the service
account user rights in project. I tried setting up a NetworkCredential object
with a username and password hard-coded in and it works but obvisouly that is
not a good solution.
What is the recommend way to call PSI methods inside of events?