title: Getting ERR_CONNECTION_RESET from IIS with no information in logs
body: <p>I am getting a <code>ERR_CONNECTION_RESET</code> in Chrome when my ASP.NET server is trying to reply with an error.</p>
  
  <p>Usually I can find information about server errors by looking in the log files, but there is nothing there.</p>
  
  <p>Running a debugger over the reponse seems to show everything is OK, except at the end, Chrome tells me the connection was reset.</p>
  
  <p>Here is the code that is handling the exception handling:</p>
  
  <pre><code>    try
      {
         ...
      }
      catch (ArgumentException e)
      {
          Response.StatusCode = 400;
          Response.StatusDescription = e.Message;
          return new ContentResult {Content = "" };
      }
  </code></pre>
  
  <p>Chrome shows me <code>net::ERR_CONNECTION_RESET</code> in the console.</p>
  
  <p>Using Fiddler, I get the error message <code>[Fiddler] ReadResponse() failed: The server did not return a complete response for this request. Server returned 0 bytes.</code></p>
  
  <p>If I <a href="https://www.iis.net/learn/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis-85" rel="noreferrer">Enable Failed Request Tracing</a> in IIS, and open the generated xml file            </p>
  
  <pre><code>    GENERAL_FLUSH_RESPONSE_END 
  
  
      BytesSent
      0 
  
      ErrorCode
      The parameter is incorrect.
       (0x80070057) 
  </code></pre>
  
  <p>I have spent hours trying to debug this without much luck.</p>