protected void Application_Error(object sender, EventArgs e)
{
Exception ex = this.Server.GetLastError().GetBaseException();
if (ex is ArgumentErrorException)
{
return;
}
LogHelper.CurrentLogger.Error("出现未预计的异常", ex);
this.Response.Redirect("/Error.aspx");
}
详细解决方案
Asp.net 全局异常处理
热度:335 发布时间:2013-03-26 09:54:34.0
相关解决方案