title: WCF Web Service error: "Service endpoint binding not using HTTP protocol"?
body: <p>I've got a simple WCF service that has worked fine while I've been testing on my dev machine.</p>
  
  <p>Now I've moved the web service to a web server, and I'm running the service (in debug mode) at <a href="http://mydomain.com:8005" rel="noreferrer">http://mydomain.com:8005</a>.  Opening a web browser to that URL shows the expected service page, and if I put a breakpoint on the server inside the interface I'm calling, it hits the breakpoint and returns the expected data... but on the client side it comes back with the following error:</p>
  
  <blockquote>
    <p>An error occurred while receiving the HTTP response to <a href="http://mydomain.com:8005/" rel="noreferrer">http://mydomain.com:8005/</a>.  This could be due to the service endpoint binding not using the HTTP protocol.  This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down).  See server logs for more details.</p>
  </blockquote>
  
  <p>More clues: the interface signature is:</p>
  
  <pre><code>IEnumerable&lt;MyClass&gt; GetThings(out string errMsg);
  </code></pre>
  
  <p>where <code>MyClass</code> is defined as Serializable, and the definitions are identical between client and server.</p>
  
  <p>Any ideas what secret switches I need to flip?</p>