title: WCF - The socket connection was aborted
body: <p>I m getting the following Exception, when i run WCF service on a remote host with TCP binding. basichttpbinding works however. </p>
  
  <p>Also, when i host it in the same machine, it works as well.   </p>
  
  <p>Also using test client and connection to remote machine, TCP works as well.</p>
  
  <p>Why do you think i m getting the following exception? what s the fix? </p>
  
  <pre><code>Exception rethrown at [0]: 
     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
     at IService1.GetSectionEntity(String id)
     at Service1Client.GetSectionEntity(String id) in C:\src\Service1.cs:line 2318
     at GetSectionSync(Id sectionId, Boolean loadFromDbIfNotInCache) 
  2011-02-22 10:41:13,888|WARN | HttpHandler|The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:29.9870000'.
  2011-02-22 10:41:13,891|ERROR|HttpHandler|The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:29.9870000'.
  System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:29.9870000'. ---&gt; System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
     at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
     at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
     --- End of inner exception stack trace ---
  </code></pre>