title: HTTP Error 502.3 iis 10
body: <p>I got following error on iis 10 running an asp.net core application</p>
  
  <pre><code>HTTP Error 502.3 - Bad Gateway
  The specified CGI application encountered an error and the server terminated the process.
  </code></pre>
  
  <p>and the following error at event viewer</p>
  
  <pre><code>Maximum rapid fail count per minute of '10' exceeded.
  </code></pre>
  
  <p>I also Have set stdout to true but there is no log</p>
  
  <p>The following dotnet packages are installed on my computer</p>
  
  <p><a href="https://i.stack.imgur.com/QchnM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QchnM.png" alt="enter image description here"></a></p>
  
  <p>when i run the app using dotnet  myapp.dll on server and browsing localhost:5000 (enable log) for debugging after showing some normal debugging and information logs it waits and waits and nothing happen</p>
  
  <p>here are dotnet packages that are installed on my server. also my server is joined on a domain if it is related running latest windows server 2016 </p>
  
  <p><a href="https://i.stack.imgur.com/PHZNJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PHZNJ.png" alt="enter image description here"></a></p>
  
  <p>my web.config is </p>
  
  <pre><code> &lt;system.webServer&gt;
        &lt;httpProtocol&gt;
        &lt;customHeaders&gt;
         &lt;add name="Access-Control-Allow-Origin" value="*" /&gt;
          &lt;remove name="X-Powered-By" /&gt;
        &lt;clear /&gt;       &lt;/customHeaders&gt;
      &lt;/httpProtocol&gt;
      &lt;handlers&gt;
        &lt;add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /&gt;
      &lt;/handlers&gt;
      &lt;aspNetCore processPath="dotnet" arguments=".\NashrNegar.UI.dll" forwardWindowsAuthToken="true" stdoutLogEnabled="false" stdoutLogFile="C:\logs\" /&gt;
      &lt;security&gt;
        &lt;requestFiltering&gt;
          &lt;requestLimits maxAllowedContentLength="300000000" /&gt;
        &lt;/requestFiltering&gt;
      &lt;/security&gt;   &lt;/system.webServer&gt;
  </code></pre>
  
  <p>what's the problem or any suggestion.</p>