title: An error occurred while receiving the HTTP response error
body: <p>I am having issues with my wcf service while testing with WCF Client. When I debug, I see that data comes back from the funcion but it errors out during response. Can someone help me figure out what I am missing?</p>
  
  <p>Here is my service and config file:</p>
  
  <pre><code>public List&lt;PO&gt; GetAllPOs()
  {
      var data = new List&lt;PO&gt;();
      try
      {
          var manager = new EntityReaderManager&lt;PO&gt;(ConfigurationManager.AppSettings("FilemakerDB"]);
          data = manager.GetEntityList();
      }
      catch (Exception ex)
      {
          ILogger logger = new Logger(typeof(FilemakerDataService)); 
          logger.Error(ex.Message);
  
      }
  
     return data;
  }
  </code></pre>
  
  <p>Here is the config file:</p>
  
  <pre><code>&lt;system.serviceModel&gt;    
      &lt;diagnostics&gt;
        &lt;messageLogging logEntireMessage="true" logKnownPii="true" logMalformedMessages="true"
          logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true"
          maxSizeOfMessageToLog="2147483647" /&gt;
        &lt;endToEndTracing propagateActivity="true" activityTracing="false"
          messageFlowTracing="true" /&gt;
      &lt;/diagnostics&gt;
  
      &lt;bindings&gt;
      &lt;wsHttpBinding&gt;
        &lt;binding name="Custom.WSHTTPBinding.Configuration" closeTimeout="10:10:00"
          openTimeout="10:10:00" receiveTimeout="10:10:00" sendTimeout="10:10:00"
          maxBufferPoolSize="655360" maxReceivedMessageSize="655360"&gt;
  
          &lt;security mode="None" /&gt;
        &lt;/binding&gt;
      &lt;/wsHttpBinding&gt;
    &lt;/bindings&gt;
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="false" /&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="Custom.ServiceBehavior" name="AerWorldwide.Service.Web.FilemakerData.FilemakerDataService"&gt;
          &lt;endpoint address="" binding="wsHttpBinding" bindingConfiguration="Custom.WSHTTPBinding.Configuration"
            name="Custom.WSHTTPBinding.Configuration" contract="AerWorldwide.Service.Web.FilemakerData.IFilemakerDataService"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
    &lt;behaviors&gt;
      &lt;serviceBehaviors&gt;
        &lt;behavior name="Custom.ServiceBehavior"&gt;
          &lt;serviceMetadata httpGetEnabled="true" /&gt;
          &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
        &lt;/behavior&gt;
      &lt;/serviceBehaviors&gt;
    &lt;/behaviors&gt;    
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
      at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
      at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
      at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
  Inner Exception: An existing connection was forcibly closed by the remote host
      at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) 
  </code></pre>