WCF Service Error
Posted
by Sanjeev K B
on Stack Overflow
See other posts from Stack Overflow
or by Sanjeev K B
Published on 2009-07-23T13:29:18Z
Indexed on
2010/04/20
22:03 UTC
Read the original article
Hit count: 569
wcf-binding
|wcf
Hi,
I have a WCF service deployed on a windows 2003 server. We are using a WPF application to consume this service. The trouble is if we deploy a new version of WCF service or leave the IIS and WPF application idle for sometime and then try to execute a functionality, we are get the following exception:
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>
Thanks and Regards,
© Stack Overflow or respective owner