mvc5 错误页如何定义
项目根目录下的Web.config
<system.web> <customErrors mode="On" defaultRedirect="~/Error/Index"> <error statusCode="500" redirect="/Error/page_01" /> <error statusCode="404" redirect="/Error/page_02" /> </customErrors> </system.web>
欢迎指正:haizi2014@qq.com