joomla visitors
Mithila Software Blog | Dealing with Validation of viewstate MAC failed error in

Dealing with Validation of viewstate MAC failed error in

November 27, 2012 Posted by Mithila Software

If you are testing an application on your newly created sub-domains or subdomains-in-folders then sometimes , you run into a very nasty problem that shows this error description :

"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."

Most of the time the error is solved by this trick

Steps :

1. Go to and generate a machine key (ASP.NET 2.0 machineKey in our case)

2.Add the machine key generated at the website in your testing web applications web.config's file under <system.web> i.e.



<----Generated machine key from the website here--->


Hope that solves your valuable hours to programming...



blog comments powered by Disqus
Address ::
Mithila Software Solutions,
Green House , 3 GM Road ,
Near Radio Station , Darbhanga
PIN:: 846004
Phone :: # 099-397-49350