viewstate MAC 在 asp.net 网站失败

viewstate MAC failed at asp.net website

我有一个代码相同但数据不同的 11 网站,我在原始网站的子域中复制了相同的网站,不同的数据来自数据访问中每个网站的 id,代码总是可以正常工作,但有时 当“注册或登录”等页面导致错误页面时

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster

我使用框架 4

这是因为共享虚拟主机。请检查以下有用的链接

Asp.net Validation of viewstate MAC failed [计算器]

https://support.microsoft.com/en-us/help/2915218/resolving-view-state-message-authentication-code-mac-errors