title: How to Get Error Details of an ASP.NET 5 app deployed on Azure Websites?
body: <p>I have an ASP.NET 5 solution with a website and several project libraries. I'm using MVC 6 and Entity Framework 7. Locally the app is working fine and until today it was working also on Azure deployed as an Azure Website.</p>
  
  <p>But today after the latest deployment on Azure I got an error 500 like this on the startup (still working fine locally):</p>
  
  <p><img src="https://i.stack.imgur.com/ilyPA.png" alt="enter image description here"></p>
  
  <p>I tried to get more details by :</p>
  
  <ul>
  <li>using middleware diagnostics</li>
  <li>adding the customError / httpError settings in the web.config file</li>
  <li>downloading the DetailedError page generated </li>
  </ul>
  
  <p>It seems that the error/exception is happening during the Startup/Configure step but I'm still getting the generic error page without details. Even the version generated on the server (DetailedErrors folder) I got this:</p>
  
  <p><img src="https://i.stack.imgur.com/bWAFX.png" alt="enter image description here"></p>
  
  <p>I enabled the Failed Request Tracing but still no useful information:</p>
  
  <p><img src="https://i.stack.imgur.com/RAaId.png" alt="enter image description here"></p>
  
  <p>Even if I strip down the code in the Startup/Configure and add a try/catch as suggested I got the same error without détails. It seems to be a configuration/compilation issue but hard to debug without any information.</p>