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

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

问题描述

尝试通过TFS连续部署来部署azure网站时遇到以下错误.

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

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

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

异常消息:Web Deploy无法修改目标上的文件"Antlr3.Runtime.dll",因为它已被外部进程锁定.为了使发布操作成功,您可能需要重新启动应用程序以释放锁定,或者在下一次尝试发布时对.Net应用程序使用AppOffline规则处理程序. 了解更多信息: http://go.microsoft.com/fwlink/?LinkId= 221672#ERROR_FILE_IN_USE . (类型DeploymentDetailedException)

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.

推荐答案

您遇到了Azure和.NET的局限性

You ran into a limitation of Azure and .NET

建议重新启动您的应用程序.可以通过更改环境变量来完成,这又会迫使iis重新启动.

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

然后部署,然后再次

 Set COR_ENABLE_PROFILING = 1

您可以找到有关此问题的说明这里

You can find a description of this problem here

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

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