title: HTTP Error 500.30 - ASP.NET Core 5 app failed to start
body: <p>I deploy a .NET Core 5 app with settings:
  <a href="https://i.stack.imgur.com/bDi5K.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bDi5K.png" alt="enter image description here" /></a></p>
  <p>And the website shows an error:</p>
  <blockquote>
  <p>HTTP Error 500.30 - ASP.NET Core app failed to start
  Common solutions
  to this issue:</p>
  <ul>
  <li>The app failed to start</li>
  <li>The app started but then stopped</li>
  <li>The app started but threw an exception during startup</li>
  </ul>
  <p>Troubleshooting steps:</p>
  <ul>
  <li>Check the system event log for error messages</li>
  <li>Enable logging the application process' stdout messages</li>
  <li>Attach a debugger to the application process and inspect</li>
  </ul>
  <p>For more information visit:
  <a href="https://go.microsoft.com/fwlink/?LinkID=2028265" rel="noreferrer">https://go.microsoft.com/fwlink/?LinkID=2028265</a></p>
  </blockquote>
  <p>What is causing this error?</p>