Validation viewstate MAC验证失败

Validation viewstate MAC验证失败,validation,iis-7,asp.net-2.0,viewstate,validationerror,Validation,Iis 7,Asp.net 2.0,Viewstate,Validationerror,我们最近将所有站点从一台服务器(IIS6)移动到一台新服务器(IIS7),这也涉及到更改所有DNS记录。但是,在某些网站上,当您在某些页面上发帖时,会出现以下错误: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationK

我们最近将所有站点从一台服务器(IIS6)移动到一台新服务器(IIS7),这也涉及到更改所有DNS记录。但是,在某些网站上,当您在某些页面上发帖时,会出现以下错误:

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
查看状态MAC的验证失败。如果此应用程序由Web场或群集托管,请确保配置指定了相同的validationKey和验证算法。无法在群集中使用自动生成。 描述:执行当前web请求期间发生未处理的异常。请查看堆栈跟踪以了解有关错误的更多信息以及错误在代码中的起源。 异常详细信息:System.Web.HttpException:viewstate MAC验证失败。如果此应用程序由Web场或群集托管,请确保配置指定了相同的validationKey和验证算法。无法在群集中使用自动生成。 起初我认为这可能是该站点的传播问题(即,它试图发回旧服务器)。然而,DNS记录在两周前就被更改了,所以情况肯定不会是这样

为什么会发生这种错误


可能值得注意的是,此错误从未在旧服务器上发生。

这可能是与asp.net-2.0相关的错误。您使用的是哪个版本?该错误已在SP2中修复。

在服务器上安装.NET 4.0时是否包括此问题?我们目前有.NET3.5,只要您有最新的版本和补丁,它也应该与3.5配合使用。(假设这就是问题所在,也就是说)我已经对此进行了研究,似乎您需要.NET3.5SP1来实现.NET2.0SP2。我们已更新到.NET 4.0,不再收到错误!谢谢