using System; using System.Web; using General.ExceptionHandling; namespace Sample.Web { public class SampleHttpApplication : HttpApplication { public SampleHttpApplication( ) { this.Error += new EventHandler(SampleHttpApplication_Error); } void SampleHttpApplication_Error(object sender, EventArgs e) { HttpContext ctx = HttpContext.Current; ExceptionManager.Report("Uncaught Exception", ctx); } } }