Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当方法在应用程序池回收、应用程序域回收或 IIS 关闭时失败时,我需要进行一些自定义处理。是否有特定的异常类型?也许:ApplicationException?而不是使用泛型Catch (exception ex)
Catch (exception ex)
IIS 回收点之前的右侧是Application_Endat global.asax
Application_End
void Application_End(object sender, EventArgs e) { }