如果从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,例如.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。