Expand|Select|Wrap|Line Numbers
- void Application_Error(object sender, EventArgs e)
- {
- string ex = Server.GetLastError().ToString();
- HttpContext.Current.Session["HttpContext_ERROR"] = HttpContext.Current;
- HttpContext.Current.Session["LastError"] = ex;
- // this just logs various info about the error
- ErrorLogger.LogError("Uncaught exception", ex, HttpContext.Current);
- Server.ClearError();
- }