web.config中自定义错误页配置

设置未捕捉错误的错误的页面

<customErrors mode="RemoteOnly" defaultRedirect="DefaultErr.html">
<error statusCode="404" redirect="NotFound.html"/>
<error statusCode="500" redirect="NotFound.html"/>
</customErrors>

posted @ 2017-06-16 09:09  一杯水M  阅读(303)  评论(0)    收藏  举报