Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 15, 2012 12:53 PM by JimLad1
Feb 12, 2012 11:33 PM|LINK
Is there any way of defining a server side global exception handler for PageMethods or ScriptService Web Methods? This is for logging - will pass through the error to the client. Tried a SoapExtension, before I realised that SOAP isn't used! Global.asax
Application_OnError is not hit?
Seriously - is there no way of doing this? Can't find anything online.
Wasted a lot of time on this. Gonna have to do try catch blocks on each method for the moment, but that's seriously rubbish!
Feb 13, 2012 12:16 AM|LINK
You should be using Application_Error, not Application_OnError:
Feb 13, 2012 04:24 PM|LINK
Thanks for the reply. I am using Application_Error - that was a typo. It doesn't work for web methods. Question still open.
Feb 14, 2012 02:40 AM|LINK
Feb 15, 2012 12:53 PM|LINK
Thanks. I've seen that. ELMAH - I don't think I'll be allowed to include yet another 3rd party product into the software. Is there any other alternative?