title: Intermittent Connection Refused Error
body: <p>I am a bit new to developing WCF services and am running into two issues when invoking a WCF web service from an Android app. </p>
  
  <ol>
  <li><p>Intermittent Connection Refused Error (HttpHostConnectException) - This happens if I attempt to connect to the web service after a few minutes of inactivity. </p></li>
  <li><p>Connection reset by peer - This occurs when one specific web service method has to process a lot of records. This same method works fine for smaller results sets. I suspect this may have to do with the ASP.NET process worker and I have been experimenting with different timeout intervals in IIS but the problem persists. </p></li>
  </ol>
  
  <p>Any help with the above is greatly appreciated.</p>
  
  <p>Setup: <ul>
  <li>IIS7.5 running on a Windows Server 8 machine with a single process worker</li>
  <li>Enabled IIS Authentication Modes: Anonymous, Windows</li>
  <li>Android v 2.3.3 referencing JCIFS library for NTLM authentication</li>
  <li>Calling a RESTful WCF Web Service using HTTP POST</li>
  <li>WCF Session State <em>Mode="Off", CookieLess = "UseDeviceProfile", regenerateExpiredSessionId="true"</em> </li>
  </ul></p>
  
  <p>Thanks,</p>
  
  <p>J.D.</p>