Elmah ignores exceptions in MVC 3 site
问题 I don’t know it this is an issue with ELMAH or ASP.NET MVC3, or just the combination of the two: I’ve configured my MVC 3 website to use ELMAH, but when I enable my “pretty” error page in web.config, ELMAH stops logging exceptions. I used to have just this in my web.config, <customErrors mode="On" defaultRedirect="/Error.htm" redirectMode="ResponseRewrite"></customErrors> But at first I didn’t have an Error.cshtml view in my shared folder: ELMAH would log an exception for the missing Error