Yup, it should trap the error at the global handler. Try this - I suspect
the global file may be corrupted - handle the appdomain unhandled exception
event from the global asax code behind or the thread unhandled exception. If
you can't catch those, I would copy the contents of the code behind/besides
file, delete and add a new global asax file and paste in the contents of the
code behind/besides file.
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless Author Plug
OWC Black Book 2nd Edition
Exclusively on
www.lulu.com/owc
$24.99
"cashdeskmac" <(E-Mail Removed)> wrote in message
news:E4ECF2FE-95EB-413D-A558-(E-Mail Removed)...
> 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.