Application_Start ASP.NET

前端之家收集整理的这篇文章主要介绍了Application_Start ASP.NET前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如果从Microsoft官方 documentation获取此信息:

The Application_Start and Application_End methods are special methods that do not represent HttpApplication events. ASP.NET calls them once for the lifetime of the application domain,not for each HttpApplication instance.

我确信Application_Start与HttpApplication有关,这里this guy explains为什么我错了.
哪个对象/实体与Application_Start事件有关?

解决方法

正如文档所述,事件链接application domain的生命周期,实际上这意味着应用程序正在运行的应用程序池.如果应用程序池因任何原因被回收,Application_Start将再次触发 – 更改为web.config,例如.
原文链接:https://www.f2er.com/aspnet/247973.html

猜你在找的asp.Net相关文章