How can the error 'Client found response content type of 'text/html'.. be interpreted

后端 未结 9 1509
深忆病人
深忆病人 2020-12-18 17:54

I\'m using C# and connecting to a WebService via an auto-generated C# proxy object. The method I\'m calling can be long running, and sometimes times out. I get different err

9条回答
  •  离开以前
    2020-12-18 18:40

    Is your webservice configured correctly in IIS? The pool its using, the version of ASP.NET (2.0) is set? Can you browse the .asmx?

    Talking about exceptions, try to put an try-catch block in the line that access your webservice. Put and catch(System.Web.Services.Protocolos.SoapException).

    Also, you can set a Timeout for your webservice object.

提交回复
热议问题