Thursday, February 10, 2011

ASP.NET Unhandled Exception Handler

This little bit of code from Jeff Atwood works equally well in an ASP.NET 1.1 application as well as the most recent ASP.NET 4.0 applications. If you need a bit of code to throw an email and/or a friendly message back to your users, this my friends is it... This was written in VB.NET, but I ported it over easily to C# and added some minor enhancements. If you'd like to have my version, let me know and I'll put it out somewhere for you to get it.

Update: You can download it here on GitHub: http://github.com/johnmbaughman/UnhandledException

16 comments:

Phil Geissler said...

Hi John,

I would be very inetersted in your C# version.

Thanks!
Phil

tmalone said...

I would also appreciate the C# version.

Phil said...

I'm interested in this code.

Lozane said...

Great work, can I also get a copy of this?

Many thanks,
Derek

Philip Nielsen said...

I would also be happy to see it! Where can I get it? :)

Manuel said...

Hi John,

Where can I get a copy of this code?

Thanks,
Manuel

Manuel said...
This comment has been removed by the author.
gary summers said...

Hi John,

I would be very interested in your c# version also.

JAZ said...

Great! Can I get a copy?

Jaspreet Singh said...

I would also be interested in C# Version.

Lochness said...

Hi John,

Please put me on your list of enlightened C# exception handlers!

Ashley said...

Hi John,

Please can you send me your C# version,

Thanks,
Ashley

John M. Baughman said...

Wow... Been away for a long while and I missed all these comments! I'll work on a spot to put it and get it up here in a couple of days!

John M. Baughman said...

I really do suck at following through. Still looking for a spot for the code...

Unknown said...

You might try github.

John M. Baughman said...

Ok, Github it is...

http://github.com/johnmbaughman/UnhandledException