azure webapp部署后获取网站建设中的消息 [英] Getting site under construction message after azure webapp deployment

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

问题描述

在将我的 webapp 发布(使用 visual studio webdeploy )到 azure 时出现网络故障.后来我再次尝试,然后我收到以下错误消息.

<块引用><块引用>

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

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

注意:我也尝试过离线应用.没希望

解决方案

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

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

所以我的建议是,看看你网站的根目录,如果有一个名为 APP_OFFLINE.html 的文件,删除它.

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.

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

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

解决方案

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.

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 APP_OFFLINE.html automatically. But, somehow it did not happened in above case.

So what I suggest is, take a look at the root directory of your website and if there's a file called APP_OFFLINE.html, just remove that.

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

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