gpt4 book ai didi

asp.net - 重新发布代码时,global.asax中的Application_Start事件是否触发?

转载 作者:行者123 更新时间:2023-12-04 07:07:05 24 4
gpt4 key购买 nike

当新发布的代码保存在项目的IIS网络根目录中时,是否会在global.asax中调用Application_Start,

最佳答案

每次应用程序池被回收时,Application_Start都会触发,这通常在您更新bin文件夹或web.config中的某些文件时发生。因此,如果您重新发布站点并更新其中一些文件,则IIS将卸载应用程序,并且下次收到请求时Application_Start将触发。

关于asp.net - 重新发布代码时,global.asax中的Application_Start事件是否触发?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10547513/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com