I just deployed an ASP.NET MVC 3 application to our staging server. Whenever an error occurs, I cannot get the detailed error information, i.e. the “yellow screen of death.” Instead, I just get a simple “Sorry, an error occurred while processing your request.” message.
My Web.config does include the customErrors off, i.e.:
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
...
</assemblies>
</compilation>
<customErrors mode="off"/>
</system.web>
In this case, I know exactly what the underlying error is. (I forgot to set permissions on a stored procedure.) But I really want to (re)enable the error handling so I can find these bugs quickly. Of course, I will remove this once we actually go live for security reasons.
What other settings are there that could be overriding the default ASP.NET error handling?
The “Off” must be capitalized correctly.
From “Editing ASP.NET Configuration Files“:
Remember kids, you learn something new every day. Even if what you learn is lame.