加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

Application_Start ASP.NET

发布时间:2020-12-16 04:20:31 所属栏目: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 ea
如果从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,例如.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读