原始地址:http://www.cnblogs.com/dudu/p/3825780.html 在园子博客程序实现异步化改造后,在日志中发现这样的错误提示: System.Web.HttpUnhandledException (0x80004005): 引发类型为“System.Web.HttpUnhandledException”的异常。
HttpResponse response = ctx.Response; HttpRequest request = ctx.Request; //获取到HttpUnhandledException 来达到侦听未经处理的异常 具体代码如下: void Application_Error(object sender, EventArgs e) { //获取到HttpUnhandledException
this.outermostException = this.Exception; if ((this.Exception is HttpUnhandledException this.StackInfo = this.GetStackInfo(this.Exception); if ((this.outermostException is HttpUnhandledException
HttpResponse response = ctx.Response; HttpRequest request = ctx.Request; //获取到HttpUnhandledException