title: HTTP Error 502.5 - Process Failure with error code: 0x80070057
body: <p>I have try to run the command dotnet MVCWebAPI.dll and it's working fine i can able to call api also.</p>
  
  <p>When try to publish in iis 10.0.xx get the below error:</p>
  
  <p>HTTP Error 502.5 - Process Failure
  Common causes of this issue:</p>
  
  <pre><code>The application process failed to start
  The application process started but then stopped
  The application process started but failed to listen on the configured port 
  </code></pre>
  
  <p>Troubleshooting steps:</p>
  
  <pre><code>Check the system event log for error messages
  Enable logging the application process' stdout messages
  Attach a debugger to the application process and inspect 
  </code></pre>
  
  <p>When open event viewer get the below message:</p>
  
  <p>Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE' with physical root 'C:\inetpub\wwwroot\' failed to start process with commandline ' ', ErrorCode = '0x80070057' : 0.</p>
  
  <p>Below is my web.config file:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;location path="." inheritInChildApplications="false"&gt;
      &lt;system.webServer&gt;
        &lt;handlers&gt;
          &lt;add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /&gt;
        &lt;/handlers&gt;
        &lt;aspNetCore processPath="dotnet" arguments="./MVCWebAPI.dll" stdoutLogEnabled="true" stdoutLogFile="./logs/stdout" /&gt;
      &lt;/system.webServer&gt;
    &lt;/location&gt;
  &lt;/configuration&gt;
  </code></pre>