My MVC3 application that works fine in Debug is failing in Release mode. But the biggest problem is that the error I’m getting is not detailed at all. This is all I’m getting:
Sorry, an error occurred while
processing your request.
I have configured elmah and was expecting to see a full error report, including stacktrace, there, but there’s nothing.
How can I get a proper error report?
After @tvanfosson comment, I realized I hadn’t configured MVC3 to pass exceptions to
elmah. Found this tutorial on how to do it, and right on Part 1 it suggests to comment this line from Global.asax.cs:That did it. Getting the YSOD now, and
elmahcorrectly captures the exception.