Showing posts with label Validation of viewstate MAC failed. Show all posts
Showing posts with label Validation of viewstate MAC failed. Show all posts

March 8, 2012

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.


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.


above error came when I clicked on a button after session expired.

I solved the above by adding
<pages enableViewStateMac ="false">
in web.config file.