Multimobile Development: Building Applications for any Smartphone
Global Exception Handling with ASP.NET
Details Related Types
Site:  http://webdeveloper.earthweb.com/
Original URL:  http://webdeveloper.earthweb.com/scripting/asp/article/0%2C%2C12225_961301%2C00.html
Summary:
You can't debug a problem if you don't know that it exists. After you take your web application live, you are no longer the only one who is using it (hopefully), so you need an effective plan to track exceptions when they occur while others are surfing your site. A great way to do this is to implement an exception handler at the application level. This will allow you to consolidate the logging and notification parts of your exception handling in one convenient place. As you'll see from the code examples that follow, your global exception handler can handle both specific exceptions that you trap in your code and generic unhandled exceptions.
Multimobile Development: Building Applications for any Smartphone
System.Diagnostics.EventLog
System.Diagnostics.EventLogEntryType
System.DivideByZeroException
System.EventArgs
System.Exception
System.Web.HttpApplication
System.Web.HttpApplicationState
System.Web.HttpException
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734