如何更新正在运行的asp.net核心应用程序? [英] How to update a running asp.net core application?
问题描述
我有一个运行Windows Server 2008 R2和IIS的Asp.Net Core MVC应用程序.但是,每次更新此应用程序时,都需要在IIS中手动停止applicationPool,并在完成更新应用程序后重新启动applicationPool.否则,它将告诉我"xxx.dll正在由其他进程使用".
I have a Asp.Net Core MVC application running on Windows Server 2008 R2 with IIS. But every time I update this application, I need to manually stop the applicationPool in IIS, and restart the applicationPool after I finish updating the app. Otherwise it will tel me "the xxx.dll is in use by other progress".
有什么方法可以使此过程更轻松?
Is there any way to make this process easier?
推荐答案
最后,我找到了我的anwser:
我只需要将一个名为app_offline.htm
的文件添加到IIS Web根目录(而不是您的项目wwwroot文件夹).
由于此问题,您可能需要同时尝试App_Offline.htm
或app_offline.htm
.
Finally I found my anwser:
I just need add a file named app_offline.htm
to the IIS web root(not your project wwwroot folder).
due to this issue you may need try both App_Offline.htm
or app_offline.htm
.
这篇关于如何更新正在运行的asp.net核心应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!