Rich Custom Error Handling with ASP.NET
Eli Robillard has a great article on MSDN about Error Handling.
Summary: Adding your own custom error handling to your ASP.NET Web applications can ease debugging and improve customer satisfaction. Eli Robillard shows how you can create an error-handling mechanism that shows a friendly face to customers and still provides the detailed technical information developers will need.