I have the following output when running my web application:
The page cannot be displayed because an internal server error has occurred.
Screenshot:
In my web.config
, the following are set:
<system.web>
<customErrors mode="Off"/>
</system.web>
<system.webServer>
<asp scriptErrorSentToBrowser="true"/>
<httpErrors errorMode="Detailed"/>
</system.webServer>
How do I see what the error is?
This is hosted locally in the Azure Compute Emulator.
In addition to the configurations you have done, if you are using Internet Explorer, turn off the option "Show friendly HTTP error messages" in the "Advanced" tab.
Another option is to enable tracing in your application so you can use the trace viewer to look for exceptions.
You might also find value in deploying ELMAH with your application for improved error handling.