"Edward" <ne***********@msn.comwrote in message
news:uO**************@TK2MSFTNGP02.phx.gbl...
>I have a need to detect if an error is caused by HTTP error 404 in
Application_Error (in global.asax). I read MSDN docs but did not get an
answer.
Is there a reliable workaround to detect this status?
404 Not Found is caught by IIS, not your webapplication. Your webapplication
will never get this error. What you could do is configure IIS to redirect to
a certain error page which your application could use to detect the 404.