azurew网站continious部署 - 因为它是由一个外部进程锁定Web部署不能修改目标文件'XXX' [英] azurew website continious deployment - Web Deploy cannot modify the file 'XXX' on the destination because it is locked by an external process

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

问题描述

我想通过部署TFS持续部署一个蓝色的网站时,遇到了下面的错误。

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部署不能修改目标文件'Antlr3.Runtime.dll。为了让发布操作成功,您可能需要为重新启动您的应用程序解除锁定,或者使用AppOffline规则处理.NET应用程序在你的下一个发布的尝试。
    了解更多:<一href=\"http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE\">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

您可以找到这个问题的说明<一href=\"https://docs.newrelic.com/docs/agents/net-agent/azure-installation/azure-websites?_ga=1.53262632.1490780507.1418719620#known_issues\">here

You can find a description of this problem here

这篇关于azurew网站continious部署 - 因为它是由一个外部进程锁定Web部署不能修改目标文件'XXX'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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