<customErrors defaultRedirect="~/serverErrorPage.aspx" mode="On" redirectMode="ResponseRewrite"/>
It is not suitable for real use before the .NET3.5 Service Pack 1, since there was no redirectMode attribute before, and it will always act with the default value "ResponseRedirect", which will redirect to the error page instead of direct display; therefore, instead of responding to an error, it is "successfully" redirected to another page, and then returns an error!
source
share