title: HTTP 502.5 - ASP.NET Core cannot start in IIS
body: <p>I am having trouble starting an ASP.NET Core website on IIS on a Windows Server 2012</p>
  
  <p>I get the following error in the Windows EventLog:</p>
  
  <pre><code>Application 'MACHINE/WEBROOT/APPHOST/IDENTITY' with physical root 'D:\CompanyName\IdentityServer\' failed to start process with commandline 'dotnet .\identityserver.dll', ErrorCode = '0x80004005 : ff.
  </code></pre>
  
  <p>I enabled stdout logging, but the log files it produces are empty = 0kb.
  I updated the entire folder to have full control for the IIS Application Pool user.</p>
  
  <p>I also installed the Hosting Bundle, and the Microsoft Visual C++ 2015 Redistributable...</p>
  
  <p>The application runs without problem, when I run it in the command line:</p>
  
  <pre><code>dotnet .\identityserver.dll
  </code></pre>
  
  <p>The only way I can get it running, it to set the Application Pool Identity to <strong>NETWORK SERVICE</strong></p>
  
  <p>So to me it seems it is a permission issue, but the application pool identity has accesss to everything in the websites folder??</p>