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
---------------------
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
---------------------