title: WCF error while working with List, ErrorCode: 10054
body: <p>WCF error while working with List: </p>
  
  <blockquote>
    <p>"Unable to read data from the transport connection: An existing
    connection was forcibly closed by the remote host"
     while trying to return a List in from WCF Service.</p>
  </blockquote>
  
  <p>note please;
   1. my business object Bank is set as KnownTypeAttribute like <code>[ServiceKnownType(typeof(ProjectName.Bo.Bank))]</code></p>
  
  <ol>
  <li><p>I can return object Bank from WCF Service</p></li>
  <li><p>my inner exception error hierarchy is like
  Exception: The underlying connection was closed: An unexpected error occurred on a  receive.</p></li>
  </ol>
  
  <p>InnerException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host</p>
  
  <p>InnerException:An existing connection was forcibly closed by the remote host</p>
  
  <ol>
  <li>i tried with <code>[ServiceKnownType(typeof(System.Collections.IList))]</code> </li>
  </ol>
  
  <p>in short i am getting error while while WCF client trying to receive <code>return List&lt;Bank&gt;</code> please any body have some suggestion?</p>