Commercial Error Handler

  • Thread starter Thread starter Mark Jerde
  • Start date Start date
M

Mark Jerde

Can someone recommend a commercial error handling package I can add to my C#
programs? (VS .NET 2003.) I'm not finding any googling.

I know I could write my own or adapt something off the interet but time is
of the essence and I prefer supported software.

Thanks.

-- Mark
 
Hi Mark,

What exactly do you mean by "error handling package?" I'm not aware that any
such thing exists. Are you talking about logging by any chance?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A brute awe as you,
a Metallic hag entity, eat us.
 
What do you mean by error handling software? Are you referring to
error logging?

The Microsoft Exception Application Block contains exception logging.
http://www.microsoft.com/downloads/...FamilyID=8CA8EB6E-6F4A-43DF-ADEB-8F22CA173E02

Is this a web application or windows application? For a web
application just implement Application_Error in Global.asax.cs to
redirect to a custom error page. Then on the error page display a
basic message and implement any required logging or email notification
logic in a try block. Just make sure the error page doesn't have an
unhandled error. The error page should put everything in a try block
with empty catch block (ignore all errors).

There are different schools of thought on component exception handling.
Some prefer to catch all exceptions and wrap them in a new exception
with an additional message containing business context information.
This is what the Exception Application Block does.

The alternative would be to only catch exceptions that you explicitely
have a way to handle. For the ones you can explictely handle you can
display them on the page similar to a validation problem. Let the
others trickle up to Application_Error as is. The exception will
contain details on the entire stack of method calls. That should be
sufficient for a developer to track down the issue.

Michael Lang
XQuiSoft LLC
http://www.xquisoft.com/
 
Kevin & Mike -- The request is for a desktop application.

In VB6 I used (IIRC) the "Total VB SourceBook" from FMS. This had routines
that wrote error information to log files and/or .mdb database file. I
extended it to allow additional information to be saved. This was very
handy for support, as some of the users were 8 timeszones away. Nothing I
couldn't have written myself, just time/cost of build vs. buy. The FMS
Total .NET SourceBook, at $399, is more than I want to spend for an easy
error logger.

Some time ago I found a web site that had something similar for .NET. The
price was under $100 IIRC. It handled writing error log files, writing to
the system logs, etc. But I lost the link...

Make sense?

-- Mark
 
Use the free Microsoft Exception Block I mentioned earlier. It has
built in logging of exceptions.

http://www.microsoft.com/downloads/...FamilyID=8CA8EB6E-6F4A-43DF-ADEB-8F22CA173E02

or the logging block:
http://www.microsoft.com/downloads/...45-E56C-42D6-BBD5-29F0D5CD7F65&displaylang=en

here is the full microsoft enterprise library of application blocks for
..net 1.1:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/entlib.asp

It is also available for .net 2.0:
http://msdn.microsoft.com/library/?url=/library/en-us/dnpag2/html/EntLib2.asp

Michael Lang
XQuiSoft LLC
http://www.xquisoft.com/
 
Back
Top