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

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

问题描述

我正在开发一个Azure Web服务应用环境中的由多个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天全站免登陆