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

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

问题描述

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

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

Web Deploy无法修改文件"FunctionApp5.dll" 目的地,因为它已被外部进程锁定.为了 允许发布操作成功,您可能需要重新启动 您的应用程序以释放锁定,或使用AppOffline规则 下一次发布尝试时,.Net应用程序的处理程序.学 更多内容: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.

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.

仅当我进入Azure门户并重新启动此Azure Function应用时,它才会发布

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

推荐答案

设置

MSDEPLOY_RENAME_LOCKED_FILES=1 

Azure功能应用程序设置中的

通常可以解决此问题

in the Azure Function Application Settings usually resolved this

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

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

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

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