我在 Windows 2003 服务器上部署了 WCF 服务。我们正在使用 WPF 应用程序来使用此服务。问题是如果我们部署一个新版本的 WCF 服务或者让 IIS 和 WPF 应用程序空闲一段时间然后尝试执行一个功能,我们会得到以下异常:
The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 119 bytes of the response were:'<HEAD><TITLE>500: Server Error [20-0004]</TITLE></HEAD>
<BODY>
<H1>500: Server Error [20-0004]<H1>
</BODY>
</HTML>
谢谢并恭祝安康,