ASP.NET MVC user friendly 401 error

后端 未结 4 1716
太阳男子
太阳男子 2020-12-05 07:56

I have implemented errors handling in ASP.NET MVC site in a way like suggests this post.

With 404 errors all works fine. But how correctly show user friendly screen

4条回答
  •  Happy的楠姐
    2020-12-05 08:23

    If you're using ASP.NET MVC, you're more than likely to use IIS, so why don't you just set up IIS to use your custom 401 error page for that Web Application / Virtual Directory?

提交回复
热议问题