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

Wednesday, 15 February 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

Reason:

Post back before the form has finished rendering.

Solutions:

In web.confog use below key

<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" />

No comments:

Post a comment