views:

372

answers:

4

I've got a couple simple Windows Forms apps that I'd like to add crash reporting to. Something that will give me info on what crashes are happening on user's machines (wrt my app, of course), including stack traces, logs, and screenshots, and a UI component for asking the user whether they want to upload it, etc. My apps are free, so I'd prefer a free component, and something that included an online aggregator (like http://www.hoptoadapp.com/ for Rails) would be perfect. However, I've searched around and haven't seen anything like that for .NET. What would you guys suggest?

A: 

Take a peek at Elmah (Error Logging Modules and Handlers) - an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment.

Although geared for ASP.NET, it may give you some ideas regarding Winforms implementation of somthing similar.

gimel
I've use Elmah, it works great.
Chuck Conway
User is looking for a solution which works for WinForms and not for ASP.NET. AFAIK, ELMAH is specific to ASP.NET
SolutionYogi
Questions tend to change on SO. 6 months or more makes them clearer, but different.
gimel
+1  A: 

Looks like there was a similar question asked and answered here: http://stackoverflow.com/questions/49224/good-crash-reporting-library-in-c

w4g3n3r
+1  A: 

Wumpus (aka Jeff Atwood) published some cool exception handling stuff years ago (it may have even been .net 1.1 days) but it is quite good and easy to use (and will convert to newer version of .net with success.) I am using it with an app I am writing...and since you get full source you can extend it easily.

Here is a link...

http://www.codeproject.com/KB/exception/ExceptionHandling.aspx

Oh yeah...the following link was the same library as above converted to c# and extended a bit...so choose your flavor.

http://www.codeproject.com/KB/exception/ErrorLoggingLibrary.aspx

Seth

Seth Spearman
+1  A: 

There is a commercial alternative called {smartassembly} that does error reporting.

Manga Lee