azurew 网站持续部署 - Web 部署无法修改目标上的文件“XXX",因为它被外部进程锁定 [英] azurew website continuous deployment - Web Deploy cannot modify the file 'XXX' on the destination because it is locked by an external process

查看:31
本文介绍了azurew 网站持续部署 - Web 部署无法修改目标上的文件“XXX",因为它被外部进程锁定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试通过 TFS 持续部署部署 azure 网站时遇到以下错误.

我正在使用 TfvcContinousDeploymentTemplate.12.xaml 构建定义模板.

<块引用>

异常消息:Web Deploy 无法修改目标上的文件Antlr3.Runtime.dll",因为它被外部进程锁定.为了使发布操作成功,您可能需要重新启动应用程序以释放锁定,或者在下次发布尝试时为 .Net 应用程序使用 AppOffline 规则处理程序.了解更多信息:

I'm running into the following error when trying to deploy an azure website via TFS continuous deployment.

I'm using the TfvcContinousDeploymentTemplate.12.xaml build definition template.

Exception Message: Web Deploy cannot modify the file 'Antlr3.Runtime.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. (type DeploymentDetailedException)

I've done what was suggested and added

<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>

to the publish profile, however it's not putting the app offline as i'm getting the same error.

Here is a view of my build definition where it's set to use the publish profile with the app offline setting.

解决方案

You ran into a limitation of Azure and .NET

Recommended is restarting your application. This can be done by changing an environment variable which in turn forces iis to restart.

For example: In the azure dashboard:

Set COR_ENABLE_PROFILING = 0

then deploy and then again

 Set COR_ENABLE_PROFILING = 1

You can find a description of this problem here

这篇关于azurew 网站持续部署 - Web 部署无法修改目标上的文件“XXX",因为它被外部进程锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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