Catching errors in Global.asax

后端 未结 3 962
清歌不尽
清歌不尽 2021-02-07 23:08

I have the following in my Global.aspx which is meant for handling errors:

void Application_Error(object sender, EventArgs e)
{
    Exception exception = Server.         


        
3条回答
  •  离开以前
    2021-02-07 23:45

    Application Errors can occur at any time - including when no connection is present.

    For example, if a background thread is processing and causes an exception.

提交回复
热议问题