Azure 功能:发布失败并显示消息“Web 部署无法修改目标上的文件,因为它已被外部进程锁定." [英] Azure Function: Publish fails with message "Web Deploy cannot modify the file on the Destination because it is locked by an external process."

查看:13
本文介绍了Azure 功能:发布失败并显示消息“Web 部署无法修改目标上的文件,因为它已被外部进程锁定."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 Azure Functions 项目,当我第一次发布时,好的.然后我再次发布,出现这个错误:

<块引用>

Web Deploy 无法修改文件FunctionApp5.dll"目的地,因为它被外部进程锁定.为了允许发布操作成功,您可能需要重新启动您的应用程序释放锁,或使用 AppOffline 规则.Net 应用程序在您下一次发布尝试时的处理程序.学习更多在:

解决方案

设置

MSDEPLOY_RENAME_LOCKED_FILES=1

在 Azure Function Application Settings 中通常会解决这个问题

这也可以在 Visual Studio 中的发布 -> 应用程序设置中完成:

I am developing an Azure Functions Project and when I publish first time, OK. Then I publish again, this Error appears:

Web Deploy cannot modify the file 'FunctionApp5.dll' on the destination because it is locked by an external process. In order to allow the publish operation to succeed, you may need to either restart your application to release the lock, or use the AppOffline rule handler for .Net applications on your next publish attempt. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.

It only Publishes if I enter Azure portal, and Restart this Azure Function App

解决方案

Set

MSDEPLOY_RENAME_LOCKED_FILES=1 

in the Azure Function Application Settings usually resolved this

This can also be done in Visual Studio on the Publish -> Application Settings:

这篇关于Azure 功能:发布失败并显示消息“Web 部署无法修改目标上的文件,因为它已被外部进程锁定."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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