If you copy an updated dll into an application’s bin subdirectory, the ASP.NET runtime recognizes there is new code to execute. Since ASP.NET cannot swap the dll into the existing AppDomain , it starts a new AppDomain. The old application domain is “drain stopped”, that is, existing requests are allowed to finish executing, and once they are all finished the AppDomain can unload. The new AppDomain starts with the new code and begins taking all new requests.
相安无事,3中 1种 在调用这个DLL DLL 更新那么会直接调用新的 在调用中更新DLL, DLL 会生成新的文件 旧的照样执行
[quote=引用 1 楼 peng2739956 的回复:] 相安无事,3中 1种 在调用这个DLL DLL 更新那么会直接调用新的 在调用中更新DLL, DLL 会生成新的文件 旧的照样执行
62,046
社区成员
669,049
社区内容
加载中
.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。
希望和大家一起共同营造一个活跃、友好的社区氛围。
试试用AI创作助手写篇文章吧