title: WCF Service Error
body: <p>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:</p>
  
  <pre><code>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:'&lt;HEAD&gt;&lt;TITLE&gt;500: Server Error [20-0004]&lt;/TITLE&gt;&lt;/HEAD&gt;
  &lt;BODY&gt;
  &lt;H1&gt;500: Server Error [20-0004]&lt;H1&gt;
  
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>Thanks and Regards,</p>