Tutorial :.NET Error Reporting Framework Client/Server?


Anyone knows of one? Preferred open source?

Basically some framework that I can hook up that collects error information, forwards it to a central location via web service including collecting crash dump information (exception stak trace, but possibly some other files on the machine per my extension) and does some statistical analysis + the possibility to return user info to the user (workaround, bug ID if already registered etc.).


There is an Exception Handling Application Block provided by the Patterns & Practices team at Microsoft. That stuff is usually pretty good :)


You can combine this with the Logging Application Block to create your own error logging mechanisms via their provider scheme. One of your logging providers could connect to the web service you provide.

Alternatively, and the way I've done it in the past is simply to serialize the resultant exception into an XML file on the client machine and inform them that an error report is available and to give it to their administrator. I've had a few of these come back from out in the wild, and most meant I could solve the problem - some were too finicky and not enough information was present in the exception. This could easily be adapted to post to a web service.

In the code, you then only have the one location - your unhandled exception handler - that results in this error report. All handled exceptions can safely be assumed to be standard behaviour, assuming you don't swallow exceptions in code where they aren't really being handled.


This is not open source.

But Red Gate generally do good products: SmartAssembly

Automated Error Reporting is an exception handling mechanism that automatically and silently collects detailed information when errors occur. Although highly customizable, a typical error report consists of a full stack trace and details about the exception context (e.g. values of all the local variables).

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »