Jor*_*ork 7 c# error-handling asp.net-mvc-3
我在我的网站上设置了自定义错误页面
<customErrors mode="RemoteOnly" defaultRedirect="~/Error">
<error statusCode="500" redirect="~/Error/InternalError"/>
<error statusCode="404" redirect="~/Error/FileNotFound"/>
<error statusCode="403" redirect="~/Error/AccessDenied"/>
</customErrors>
Run Code Online (Sandbox Code Playgroud)
但是,在供应商网站上还有另一个区域,当供应商区域发生错误时,重定向将转到供应商/错误/ _.由于我这里没有任何错误页面,网站似乎挂起从不显示错误页面.如何在不必将错误页面复制到供应商区域的情况下解决此问题?
| 归档时间: |
|
| 查看次数: |
2094 次 |
| 最近记录: |