在部署Azure Webapp之后获取正在建设中的消息 [英] Getting site under construction message after azure webapp deployment

查看:99
本文介绍了在部署Azure Webapp之后获取正在建设中的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在发布(使用Visual Studio webdeploy)我的Web应用程序到天蓝色时出现网络故障.后来我再次尝试,然后出现以下错误消息.

I had a network failure while publishing (using visual studio webdeploy ) my webapp to azure. Later i tried again, Then i got the below error message.

错误5 Web部署任务失败. (Web Deploy无法修改目标上的文件"NewRelic.Agent.Core.dll",因为它已被锁定 通过外部过程.为了允许发布操作 成功,您可能需要重新启动应用程序才能发布 锁,或对.Net应用程序使用AppOffline规则处理程序 您的下一次发布尝试.了解更多信息: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.)0 0 ABCD.ABCD.ABCD.ABCD

Error 5 Web deployment task failed. (Web Deploy cannot modify the file 'NewRelic.Agent.Core.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.) 0 0 ABCD.ABCD.ABCD.ABCD

因此,我多次重新启动了Webapp,但有相同的例外.然后我尝试使用FTP.那也是一个失败.几分钟后,我再次尝试使用Visual Studio Web部署,然后发布成功.但是现在我正在建设一个503错误站点.有什么主意吗?

So i restarted my webapp several times, but same exception. then i tried with FTP. That was also a failure. After few minutes i tried again with visual studio web deploy, then publishing succeeded. But now i am getting a 503 error- site under construction. Any idea?

注意:我也尝试了离线应用程序.没希望

Note: I tried app offline also. No hope

推荐答案

我解决了我的问题.解决方案是从(在服务器上)根目录中删除离线html( APP_OFFLINE.html ),该根目录是由于我添加到发布配置文件的应用离线规则而创建的

I resolved my issue. Solution was to remove offline html (APP_OFFLINE.html) from root directory(on server) that is created because of the app offline rule i added to publish profile

实际问题: 发布配置文件中的<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>,实际上用于在部署时使应用程序脱机.完成部署后,MSDeploy工具应自动将其删除.但是,在上述情况下却没有发生

actual problem : <EnableMSDeployAppOffline>true</EnableMSDeployAppOffline> in your publish profile that is actually used to take your app offline while deploying. After finishing deployment, MSDeploy tool should delete it automatically. But, somehow it did not happened in above case

这篇关于在部署Azure Webapp之后获取正在建设中的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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