I\'ve made some modifications to Global.asax so that I can show custom error pages (403, 404, and 500) Here\'s the code:
public class MvcApplication : Sy
Finally got it working to my satisfaction...
The Elmah.Mvc package applies a "hidden" error handler. I've disabled this by adding the following line in web.config
(the value was set to "false" by default from nuget install)
So, now my errors propagate up to Application_Error and are logged by Elmah, bypassing the Elmah filter, and display the proper error page (not the one in /shared/error.cshtml)