G
Guest
Hi,
I have a web application which has an error handling layer which is
performing quite well.
Any exceptions caught in a try/catch block are fed to this layer and they
pass the exception to an error page which gives up some useful information.
The problem is, if an error occurs outside of the try/catch we have code in
the Global.asax's Application_OnError handler which does the exact same thing
(get the last error, gather the required info, clear the error, clear State,
tell the (non-.NET) framework to redirect to the error page, etc.) Trouble
is, this doesn't seem to be happening.
I replicated an Object ref not found exception in a try/catch and all was
well. I tried a DivideByZero exception outside of the try/catch and I got
the basic 'yellow page'.
Does anyone know a reason why this code wouldn't execute? I have no page
level error handling for unexpected exceptions, so it should propogate to the
Application level and be caught in the Global.asax.
I tried debugging the application but it didn't step into the Global.asax,
just gave the 'yellow page'.
Any ideas would be much appreciated.
I have a web application which has an error handling layer which is
performing quite well.
Any exceptions caught in a try/catch block are fed to this layer and they
pass the exception to an error page which gives up some useful information.
The problem is, if an error occurs outside of the try/catch we have code in
the Global.asax's Application_OnError handler which does the exact same thing
(get the last error, gather the required info, clear the error, clear State,
tell the (non-.NET) framework to redirect to the error page, etc.) Trouble
is, this doesn't seem to be happening.
I replicated an Object ref not found exception in a try/catch and all was
well. I tried a DivideByZero exception outside of the try/catch and I got
the basic 'yellow page'.
Does anyone know a reason why this code wouldn't execute? I have no page
level error handling for unexpected exceptions, so it should propogate to the
Application level and be caught in the Global.asax.
I tried debugging the application but it didn't step into the Global.asax,
just gave the 'yellow page'.
Any ideas would be much appreciated.