【发布时间】:2018-12-12 04:41:46
【问题描述】:
我们在作为 Web 应用程序托管在 Azure 上的 ASP.net 应用程序上收到 Validation of viewstate MAC failed 错误。当应用程序长时间空闲然后使用 Viewstate 执行操作时,通常会发生此问题。在一般的本地服务器中,我们可以通过在web.config 文件中添加machineKey 来解决这个问题。在 Azure 的情况下,即使在 web.config 文件中添加 machineKey 后,问题仍然存在
请告知我缺少什么或如何解决此问题。
【问题讨论】:
标签: asp.net azure azure-web-app-service