title: Show ASP.NET 5 error page in Azure web app
body: <p>I am getting a 500 Internal Server Error when deploying our ASP.NET 5 web application to an Azure Web App.</p>
  
  <p><a href="https://i.stack.imgur.com/pnFSC.png"><img src="https://i.stack.imgur.com/pnFSC.png" alt="enter image description here"></a></p>
  
  <p><strong>How do I get the details and stacktrace for this exception?</strong></p>
  
  <p>I have done the following but with no luck:</p>
  
  <ul>
  <li><p>Using the diagnostics error page on startup:</p>
  
  <p><code>app.UseErrorPage();</code></p></li>
  <li><p>Setting <code>ASPNET_ENV</code> in Azure portal:</p></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/DfTxp.png"><img src="https://i.stack.imgur.com/DfTxp.png" alt="Azure Web App app settings"></a></p>
  
  <p>Using DNX beta 6.</p>