The underlying connection was closed: A connection that was expected to be kept alive was closed by the server
<p>Error Message: </p>

<blockquote>
  <p>System.ServiceModel.CommunicationException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.</p>
</blockquote>

<p><strong>Client</strong>: Windows .NET 4.0 framework
Server: UNIX</p>

<p><strong>Issue</strong> : The webservice connection was working fine with out any issues. But sometimes it was throwing the connection was closed error. I am new to .Net frame work and i know the basis. Please guide me how to fix this issue.</p>

<p><strong>Work Around</strong>: After recycling the application pool the issue was fixed. (Actually we are closing the old connection and re-establishing).</p>

<p>Any information to fix this issue will be greatly appreciated.</p>
