Extending the Exception Management Application Block for .NET

I'm looking at adding a few features to the Exception Management Application Block for .NET. First, I'm adding support to write an Event ID to the BaseApplicationException type and to the actual event written to the event log. Looks pretty good so far.

After that I think I'm gonna create a publisher that publishes extra information for ASP.NET exceptions. Like dumping the server variables, referrer and so on.

5 Comments

  • hi,

    you should look for the logging application block before you doit,

    they expanded the Exception Application blog and incoroprated it into the logging one.

  • Yes, I know about that, but I don't need all the zillions of features they put into the logging block. We've got some "old" applications already using the Exception Management code, so extending it will mean less code change (I hope).

  • You should re-check the logging block, it is supposed to "Embrace and Extend";) The EMA Block.



    You change you publisher, so it is "just" configuration.

  • Ok, ok, I'll have another look at it :D



    There were some special demands from the customers (the developers that is) about how this publisher should work, and the fact is that I just completed this new publisher. I now have one "WebExceptionPublisher" that can log to file, eventlog and smtp and also dumps all the server variables avalable. I also added support for logging event id to the event log. I promise to have a look at the logging block anyway, I promise ;)

  • we did a similar thing with our exception managment, but instead we sent the exception and detailed information to a message queue on the web server, and allowed a local queue processor windows service pick it up and decide where it should go. We wrote an application that allows users (developers, account services, management) to subscribe to a particular application or multiple applications and their notifications. You can also set a notification threshold, where devs should be notified every 5 minutes, management should get notified with a rollup every 24 hours.

Comments have been disabled for this content.