Friday, April 23, 2010

Validation of viewstate MAC failed

Hello Friends
i was getting the error in my asp.net application like this

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.
i googled it and got 791 results.
i tried every possible solutions but could not solve my problem
then finally i got one solution, tried that and bingo it worked

here is the solution:
http://www.orcsweb.com/articles/aspnetmachinekey.aspx
this link generates machine key automatically
and also generates codes for web.config file
just copy paste that code in web.config file
and run ur application again.
contact me if u cant solve it
info@amitech.co
www.amitech.co

No comments:

Amitech

Hell0 Friends,
i know you are stuck with some serious problems and that's why you are here. So friends i m putting all the solved problems(with solution) that i have faced in my life (technical problems) on this blog.
In case you can not find the proper solutions, feel free to mail me at info@amitech.co
Amit Panchal