Visual Basic .NET » Web Forms
Exception logging framework -- "K. Ali Ulug" --


Hello,

I have found an old topic related with my question but there was no answer so I am opening this topic. Joel has written to the topic
"Exception logging";

"I need to be able to do server-side logging of any exceptions thrown in an AjaxMethod, and I'd like to do it without inserting logging code into every single method. I was hoping to find some way of registering an exception handling delegate with Ajax, but there doesn't seem to be a way to do that (feature request!).

So I'm planning on writing an HttpHandler wrapper for the Ajax HttpHandler, so that I can perform exception logging there. Can anyone think of a better approach?"

And then in his next post he added that an inner class of Ajax.NET library is handling exceptions and not re-throwing them so HttpHandler solution is impossible.

Is there a way for handling exceptions for Ajax methods in just one place instead of using a try catch block for each Ajax method?

-- Albert Weinert --


K. Ali Ulug schrieb:

Is there a way for handling exceptions for Ajax methods in just one
place instead of using a try catch block for each Ajax method?t

Use the AjaxPro2 with webevent assemblie, it uses the ASP.NET 2.0  

Healthmonitoring for logging uncatched Exceptions with AjaxMethods.

--
Freundliche Grüße

Albert Weinert

http://der-albert.com 

[Submit Comment]Home