title: How to run ASP.NET Core site under IIS
body: <p>I've studied the <a href="https://docs.asp.net/en/latest/publishing/iis.html" rel="nofollow">docs</a> on how to do this but am still not understanding:
  I've published my site from Visual Studio and can run the site from the command prompt using the command: </p>
  
  <pre><code>dotnet MyDotnetCoreApp.dll
  </code></pre>
  
  <p>That tells me the app started on <a href="http://localhost:5000" rel="nofollow">http://localhost:5000</a>  and I can browse to it just fine.  </p>
  
  <p>But how do I get IIS to start the app though so that I can go to the normal port 80?  The web.config has the correct entry:</p>
  
  <pre><code>&lt;aspNetCore processPath="dotnet" arguments=".\MyDotnetCoreApp.dll" .... /&gt;
  </code></pre>
  
  <p>All I get is 500 An error occurred while starting the application.</p>
  
  <p>Must be missing some simple step. Thanks in advance.</p>