Domanda

Abbiamo recentemente trasferito tutti i nostri siti da un server (IIS6) per un nuovo server (IIS7), che ha coinvolto anche cambiando tutti i record DNS. Tuttavia, su alcuni dei siti, quando si effettua un post-back in alcune pagine, si ottiene il seguente errore:

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.

In un primo momento ho pensato che questo potrebbe essere un problema di propagazione con il sito (Ie. Il suo tentativo di post-nuovo al vecchio server). Tuttavia, i record DNS sono stati modificati più di 2 settimane fa, quindi sicuramente questo non può essere il caso.

Perché questo errore sarà si verificano?

Potrebbe essere la pena di notare, questo errore si è verificato mai sul vecchio server.

È stato utile?

Soluzione

Questo può essere un bug relativo al asp.net-2.0. Quale versione stai usando -. Il bug è stato risolto in SP2

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top