Application_Error

好久不编码,今天弄个统一错误处理都生了。

<customErrors mode="RemoteOnly" />或者是off时

Global.asax中

        void Application_Error(object sender, EventArgs e) 才执行,为on时不执行

原文地址:https://www.cnblogs.com/cuihongyu3503319/p/3324685.html