I am trying to create custom error pages to handle Page Not found errors more gracefully.
I have modified my web.config file as such:
<customErrors mode="On" defaultRedirect="AppError.aspx">
<error statusCode="404" redirect="NotFound.aspx" />
</customErrors>
And I built the two pages that are referred to but I still get that stale 404 page, not my custom page. What am I doing wrong? Do I need to make a change in global.asax also?
I have modified my web.config file as such:
<customErrors mode="On" defaultRedirect="AppError.aspx">
<error statusCode="404" redirect="NotFound.aspx" />
</customErrors>
And I built the two pages that are referred to but I still get that stale 404 page, not my custom page. What am I doing wrong? Do I need to make a change in global.asax also?