The Provider class in healthMonitoring gets an internal exception

We have a health monitoring setup for our applications. For some time we ran into some strange problem.

When an unhandled exception is thrown in our web applications, it is caught by ProcessEventMethod(WebBaseEvent raisedevent) in our custom provider class (inherited from the BufferedEventProvider class).

This event is of type WebRequestErrorEvent . However, the ErrorException object built into this event is an InnerException actual exception.

Any reason the header exception is not fixed? Does this question make it difficult for us to find the exact cause of this question? Am I doing something wrong in my configuration or do I need to encode something extra to fix this?

Any suggestions / help would be appreciated

thanks

+4
source share
1 answer

I see that this is a very old unanswered question, but I thought that at least I would give you my thoughts ...

You didn't provide any code samples, but I was just wondering if you somehow swallowed a real exception? In a custom event type, do you call base.Raise () on your overridden Raise method?

See: http://msdn.microsoft.com/en-us/library/system.web.management.webrequesterrorevent(v=vs.110).aspx

0
source

Source: https://habr.com/ru/post/1395663/


All Articles