Validation of viewstate MAC failed [Resolved]

Posted by Naresh2k3406 under ASP.NET on 3/5/2012 | Points: 10 | Views : 2000 | Status : [Member] | Replies : 3
I am getting the following error. What to be done to resolve?

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.




Responses

Posted by: Sheonarayan on: 3/5/2012 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
Try to set EnableViewStateMac="false", if that doesn't solve your problem, go through this post http://www.dotnetfunda.com/forums/thread8140-how-to-solve-this-error.aspx.

Hope this helps.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Naresh2k3406, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naresh2k3406 on: 3/19/2012 [Member] Starter | Points: 25

Up
0
Down
I am getting this error only in production server not in development. Please help someone.

Naresh2k3406, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naresh2k3406 on: 3/20/2012 [Member] Starter | Points: 25

Up
0
Down
EnableViewStateMac="false" resolved the issue but not sure why we should put this.

Naresh2k3406, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response