ASP.NET aspxerrorpath in URL
Posted
by theog
on Stack Overflow
See other posts from Stack Overflow
or by theog
Published on 2008-11-05T23:27:25Z
Indexed on
2010/05/20
19:10 UTC
Read the original article
Hit count: 335
I have a site where I use CustomErrors in the web.config to specify a custom error page, and that's working just fine. The custom 404 page is also specified in the IIS configuration (because if it's not, I don't get my custom 404 page).
But I have some logic that kicks in if a user gets a 404 that looks at their requested URL and make a navigation suggestion, if appropriate. This logic relies on the aspxerrorpath value. On my development PC, the aspxerrorpath is correctly appended to the URL, like so: http://localhost:3092/FileNotFound.aspx?aspxerrorpath=/badpage.aspx, but on my test site, there's no aspxerrorpath appended to the URL, so all of my custom logic is bypassed and my suggestions don't work. I'm not sure if this is an IIS config issue or something else. The web server is Windows Server 2008 with IIS 7.
Any thoughts?
Many Thanks.
© Stack Overflow or respective owner