5.1. Problem

This chapter focuses on the exception handling strategy in the PaidTimeOff solution. One of the goals of the pattern is to make it generic so it can be used in any of your ASP.NET projects. Another goal is to make it easy enough that you can set it and forget it. That is, you should only need to follow a few simple steps each time you set up a new solution, and not have to think about unhandled exceptions. The main points of discussion in this chapter are as follows:

  • Understanding the built-in health monitoring capabilities of the .NET Framework

  • The Microsoft Application Block for exception handling

  • The Microsoft Application Block for logging

  • How to log exceptions to the event log

  • How to e-mail exceptions to the appropriate personnel

  • How to set up exception handling in the PaidTimeOff solution

Get ASP.NET 3.5 Enterprise Application Development with Visual Studio® 2008: Problem - Design - Solution now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.