>>For example, I asked in another thread the question, "how do I determine from the exception object if the error is caused by wrong URL (404)?"
>>
>
>I don't think you do. Your code doesn't catch that "exception". Your code isn't even running. The web server (IIS) catches it and "handles" it by displaying the 404 error page (C:\WINNT\help\iisHelp\common\404b.htm on my machine). You can change this page to display your own friendly page that brings up and index of your site, for example.
>
>Anyone have any other ideas?
What happened when I tried it yesterday, the exception handling in Application_Error catches the error when user enters wrong URL. Therefore, the page 404b.htm never gets displayed. And I don't know how to make Application_Error ignore some errors.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham