web.config中自定义错误页配置
设置未捕捉错误的错误的页面
<customErrors mode="RemoteOnly" defaultRedirect="DefaultErr.html">
<error statusCode="404" redirect="NotFound.html"/>
<error statusCode="500" redirect="NotFound.html"/>
</customErrors>
设置未捕捉错误的错误的页面
<customErrors mode="RemoteOnly" defaultRedirect="DefaultErr.html">
<error statusCode="404" redirect="NotFound.html"/>
<error statusCode="500" redirect="NotFound.html"/>
</customErrors>