web.config customErrors Not Working
Posted on 2010-11-29
My redirect code in customErrors in web.config has suddeny stopped working. It probably has to do with updating to asp.net 3.5 from 2.0 last week. Though I'm not sure how. I didn't notice until today that I am now getting the standard 404 error instead of being redirecting to the .aspx page I specified.
Here is my code in web.config:
<customErrors mode="On" defaultRedirect="ExceptionPage.aspx">
<error statusCode="404" redirect="redirect.aspx"/>
This all works on my development machine. It is only broken on the hosted site.
All help is greatly welcomed.