The view 'Error' or its master was not found

后端 未结 5 1694
执念已碎
执念已碎 2021-02-05 01:28

I\'ve spent a lot of time trying to figure out a workaround for this to no avail, so I thought I\'d see if anyone here has an idea.

I\'m using Elmah in my ASP.NET MVC3 a

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 02:15

    If you use Elmah.MVC and want to use custom error pages, just change the below value to true in your Web.config:

    
    

    This will keep Elmah logging enabled but stop it from trying to redirect to the default error page.

提交回复
热议问题