Menu

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.

0 Comment

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.

Hey Guys if you find this error please do following.

First add this line in your web.config.

<system.web>

<machineKey validationKey=”1234567890123456789012345678901234567890AAAAAAAAAA”
decryptionKey=”123456789012345678901234567890123456789012345678″
validation=”SHA1″ decryption=”Auto” />

</system.web>

OR

 

<system.web>

<pages enableEventValidation=”false” viewStateEncryptionMode=”Never”></pages>

</system.web>

 

 

 
Tags: , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *