如何更新正在运行的 asp.net core 应用程序? [英] How to update a running asp.net core application?

查看:63
本文介绍了如何更新正在运行的 asp.net core 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在带有 IIS 的 Windows Server 2008 R2 上运行的 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?

推荐答案

终于找到了我的答案:
我只需要将一个名为 app_offline.htm 的文件添加到 IIS Web 根目录(不是您的项目 wwwroot 文件夹),并在替换所有文件后将其删除.由于这个问题,您可能需要同时尝试App_Offline.htmapp_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), and remove it after you replace all of your file. due to this issue you may need try both App_Offline.htm or app_offline.htm .

这将允许您使用 FTP 客户端进行更新

这篇关于如何更新正在运行的 asp.net core 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆