We get the SAME error all the time on Windows 2008. It happens when switching between application pools and is really annoying! The error has been posted here for months without reply!System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
Server Error in '/' Application.
--------------------------------------------------------------------------------
'', hexadecimal value 0x13, is an invalid character.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: '', hexadecimal value 0x13, is an invalid character.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: '', hexadecimal value 0x13, is an invalid character.]
System.Xml.XmlConvert.VerifyCharData(String data, ExceptionType exceptionType) +1797845
System.Xml.DocumentXmlWriter.WriteString(String text) +35
System.Xml.XmlWellFormedWriter.WriteString(String text) +1586215
Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text) +17
Microsoft.Web.Services3.Xml.XmlWrappingWriter.WriteString(String text) +17
System.Web.Services.Protocols.Soap11ServerProtocolHelper.WriteFault(XmlWriter writer, SoapException soapException, HttpStatusCode statusCode) +909
System.Web.Services.Protocols.SoapServerProtocol.WriteException(Exception e, Stream outputStream) +1277
System.Web.Services.Protocols.WebServiceHandler.WriteException(Exception e) +125
System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() +487777
System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context) +191
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +638
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +177
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
--.
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 DotNetPanel.EnterpriseServer.esWebServers.UpdateWebSite(WebSite site)
at DotNetPanel.Portal.WebSitesEditSite.SaveWebSite()
The complete error we get it: