質問

最近、すべてのサイトを1つのサーバー(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.

最初は、これがサイトの提案の問題である可能性があると思いました(つまり、古いサーバーに後退しようとしています)。ただし、DNSレコードは2週間以上前に変更されたため、確かにそうではありません。

なぜこのエラーが発生しているのですか?

注目に値するかもしれません。このエラーは古いサーバーでは発生しませんでした。

役に立ちましたか?

解決

これは、ASP.NET-2.0に関連するバグかもしれません。使用しているバージョン - バグはSP2で固定されています。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top