In a old site, I was changing the way that CustomErrors works by adding redirectMode="ResponseRewrite"
(new in 3.5 SP1):
<customErrors mode="RemoteOnly" defaultRedirect="Error.aspx" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="404.aspx" />
</customErrors>
The thing is: it shows me the generic error page (the one that you get when you don't set customErrors
. If I remove theredirectMode="ResponseRewrite"
part, it works fine.
I'm sure 3.5 SP1 is installed in the server, because I use the same setting on other sites hosted in the same server.
Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…