Wednesday, October 06, 2004

VJs Tip Of The Day - October 6th 2004

Error Redirection in case of Html or ASP Pages

I am not sure how many of you remember our old tip somewhere in the month of June... It was about the way to set Error Redirection page from web.config and how SmartNavigation options makes it goes crazy and work around for that... Well Click here if you want to read it...

What I wanted to add on to that tip today was that the settings that you do in the web.config files do not work for any .htm or .asp pages... i.e. If a user requests an .htm or .asp page which is not available then then your setting statuscode="404" redirect="pagenotfound.htm" in the webconfig will not work for that you will have to go within IIS metabase to configure the same.

The other interesting fact here is that if you did a xcopy deployment of your applyication then these settings will have to be manually copied to the deployment web server...:-)

PS: When things don't turn out the way you want them to be try and think "Today is the first day of the rest of my life... Let me start afresh with new determination and vigour..."

No comments: