MVC5自定义错误页 [英] MVC5 custom error page

查看:122
本文介绍了MVC5自定义错误页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要当用户尝试调用不存在或MVC5 Web应用程序的访问期间发生授权错误控制器的方法来显示自定义错误页。

I want to show custom error page when user tries to call controller methods which does not exist or authorization error occurs during access in MVC5 web application.

有没有解释如何设置自定义错误页MVC5网站的任何网站。

Is there any site which explains how to setup custom error page for MVC5 website.

在此先感谢

推荐答案

检查出福斯特,你会遇到的问题和固溶体很详细的说明页面。
http://benfoster.io/blog/aspnet-mvc-custom-error-pages

Check out this page by Ben Foster, very detailed explanation of the issues you will encounter and a solid solution. http://benfoster.io/blog/aspnet-mvc-custom-error-pages

这篇关于MVC5自定义错误页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆