title: ASP.NET 5 An error occurred while starting the application
body: <p>After publishing an ASP.NET Web App, I'm trying to host the website on my local server. However, when I start it up, it gives me this error in my browser:</p>
  
  <blockquote>
    <p>Oops. 500 Internal Server Error An error occurred while starting the
    application.</p>
  </blockquote>
  
  <p>How can I debug what this error is? The website works (both Debug and Release configurations) when starting using IISExpress and "web" in Visual Studio.</p>
  
  <p>I am using the Development environment, and I have already specified <code>app.UseDeveloperExceptionPage();</code>. </p>
  
  <p>I have followed the instructions <a href="http://docs.asp.net/en/latest/publishing/iis.html#publishing-to-iis" rel="noreferrer">here</a> to deploy to IIS. </p>
  
  <p>I've also tried the suggestion offered <a href="https://stackoverflow.com/a/34210272/5369902">here</a> (re-publishing with "Delete all existing files prior to publish" selected). (The OP there has a slightly different error, so that's why I'm posting a new question.)</p>
  
  <p>I've looked for hours on the internet, but there doesn't seem to be much content about it. Any ideas?</p>
  
  <p>I am on Windows 7, using ASP.NET 5 RC1.</p>