Custom Error Pages
I created a couple of error pages, one general and another to catch the page not found 404 error - ~/Errors/Error.aspx & Error404.aspx then added the relevant element in Web.config:
<system.web>
<customErrors mode="On" defaultRedirect="~/Errors/Error.aspx" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="~/Errors/Error404.aspx"/>
</customErrors>
....
But in testing my 404 error page doesnt come up when I try to navigate to an incorrect page, have I missed somthing here?
|