WebConfig中的Custom Error的设置。
在Web.config中寻找<customErrors> Tag,然后加入如下
<customErrors Mode=”On” defaultRedirect=”ApplicationError.htm”>
<error statusCode=”403” redirect=”Forbidden.htm”/>
<error statusCode=”404” redirect=”NotFound.htm”/>
</customErrors>
在Web.config中寻找<customErrors> Tag,然后加入如下
<customErrors Mode=”On” defaultRedirect=”ApplicationError.htm”>
<error statusCode=”403” redirect=”Forbidden.htm”/>
<error statusCode=”404” redirect=”NotFound.htm”/>
</customErrors>