Impersonation

N

Nach

Hello:

I am using Project Server 2007. I was testing the sample Impersonation code
from Project 2007 SDK and I keep getting this error when I try to Impersonate
somebody from the Resource List. I was wondering if anybody who has already
tested this sample has any ideas or a solution to this problem ?

Here is the exception error Message:

“Client found response content type of 'text/html; charset=utf-8', but
expected 'text/xml'.
The request failed with the error message:â€

Here is the StackTrace:
-------------------------------
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)

at Microsoft.SDK.Project.Samples.Impersonation.Resource.ReadResources(String
xmlFilter, Boolean autoCheckOut) in
c:\Project\Impersonation\App_Code\ResProxy.cs:line 120

at Impersonate.cmdImpersonate_Click(Object sender, EventArgs e) in
c:\Project\Impersonation\Impersonate.aspx.cs:line 151
---------------------
 
R

Ray McCoppin

It sounds like the Shared Service Provider is not work or configured correctly.

The SSP service should respond to a url like this.

http://ServerName:56737/DefaultSSP/PSI/Project.asmx

you will need to find the port and the SSP name for your Project Server.
Look in the SDK under "Finding the PSI Web Services" topic.

I hope this helps.
 
N

Nach

Hello:

Thanks...it turns out that was the problem. I didn't know I had to give the
port number of office web services instead of Sharepoint Central Admin's.

Even though I can run the App and see the output...here is the problem I am
having :

The App runs without an HTTP 401 error only when I log in as the SSP Account
owner. This is not what we can afford to do....we want all admins to be able
to log in and run this app. This SSP Account Info cannot be given to
everybody in the Admin group. Is there something I'm missing ?

Thanks
Nach

Ray McCoppin said:
It sounds like the Shared Service Provider is not work or configured correctly.

The SSP service should respond to a url like this.

http://ServerName:56737/DefaultSSP/PSI/Project.asmx

you will need to find the port and the SSP name for your Project Server.
Look in the SDK under "Finding the PSI Web Services" topic.

I hope this helps.
--
Ray McCoppin

http://www.randsmanagement.com
SRS gantt charts


Nach said:
Hello:

I am using Project Server 2007. I was testing the sample Impersonation code
from Project 2007 SDK and I keep getting this error when I try to Impersonate
somebody from the Resource List. I was wondering if anybody who has already
tested this sample has any ideas or a solution to this problem ?

Here is the exception error Message:

“Client found response content type of 'text/html; charset=utf-8', but
expected 'text/xml'.
The request failed with the error message:â€

Here is the StackTrace:
-------------------------------
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)

at Microsoft.SDK.Project.Samples.Impersonation.Resource.ReadResources(String
xmlFilter, Boolean autoCheckOut) in
c:\Project\Impersonation\App_Code\ResProxy.cs:line 120

at Impersonate.cmdImpersonate_Click(Object sender, EventArgs e) in
c:\Project\Impersonation\Impersonate.aspx.cs:line 151
---------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top