相关疑难解决方法(0)

global.asax Application_Error未触发

我的global.asax似乎没有解雇.我有:

void Application_Error(object sender, EventArgs e) 
{ 
    // Code that runs when an unhandled error occurs
    Server.Transfer("~/ExceptionFormView.aspx");
}
Run Code Online (Sandbox Code Playgroud)

In my web.config, I don't have anything like CustomErrors. As I want everything to be handled by Global.asax and transferred to ExceptionFormView.aspx.

It works fine locally, but not when we deploy to servers. Any thoughts?

Do I need PrecompiledApp.config?

asp.net global-asax

17
推荐指数
2
解决办法
2万
查看次数

标签 统计

asp.net ×1

global-asax ×1