keep getting The view “Error” not found when using Elmah and asp.net mvc 4
问题 I am using Elmah 1.2 as the logging framework for my asp.net mvc 4 application. in the web.config file, I set customErrors mode to on. <customErrors mode="On" defaultRedirect="/Error"> <error statusCode="404" redirect="/Error/NotFound" /> </customErrors> I also created a custom HandleErrorAttribute, copied the code from this link. http://joel.net/logging-errors-with-elmah-in-asp.net-mvc-3--part-4--handleerrorattribute In my Home controller, i just throw an exception to test the logging