Azure Web App 代码在发布后直到重新启动(VS2017)才更新 [英] Azure Web App Code Not Updating After Publish Until Restart (VS2017)

查看:12
本文介绍了Azure Web App 代码在发布后直到重新启动(VS2017)才更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Azure 应用服务环境中开发由多个 Web API 组成的多层 Web 应用程序.

I am developing a multi-tier web application consisting of multiple Web APIs in an Azure App Service Environment.

最近升级到 VS2017 后,我注意到在我发布新代码(来自 VS)后,应用程序会随机更新失败.远程调试器将无法正确加载,旧代码将在发布后继续运行.

Recently after upgrading to VS2017 I have noticed that the apps will randomly fail to update after I publish new code (from VS). Remote debuggers will not load correctly and the old code will continue to run after publishing.

我在发布设置中选择在目标位置删除其他文件".

I am selecting "Remove additional files at destination" in the publish settings.

重新启动应用程序通常会暂时解决问题,但有时我必须停止并重新启动每个应用程序.

Restarting the apps usually fixes the problem temporarily, though sometimes I have to stop and restart each app.

VS 或 Azure 中是否有任何新设置可能会影响此行为,或者某些内容无法正常工作?

Are there any new settings in VS or Azure that could be affecting this behavior, or is something just not working correctly?

推荐答案

WEBSITE_DYNAMIC_CACHE 是一个新功能,出于某种原因,默认情况下已启用.

WEBSITE_DYNAMIC_CACHE is new feature that, for some reason, was turned on by default.

在 Azure 门户中添加应用程序设置条目并将值设置为 0 似乎已经解决了问题.

Adding the entry to Application Settings in the Azure Portal and setting the value to 0 seems to have solved the problem.

这篇关于Azure Web App 代码在发布后直到重新启动(VS2017)才更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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