ASP.NET MVC4 CustomErrors DefaultRedirect Ignored

后端 未结 6 1903
悲&欢浪女
悲&欢浪女 2021-02-04 07:50

I have an MVC 4 app, using a custom HandleErrorAttribute to handle only custom exceptions. I would like to intercept the default 404 and other non-500 error pages and replace t

6条回答
  •  粉色の甜心
    2021-02-04 08:00

    To me, it works deleting the default Error.cshtml file, now it is taking the custom Error defaultRedirect page in Web.config.

提交回复
热议问题