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

Dealing with Validation of viewstate MAC failed error in asp.net

November 27, 2012 Posted by Mithila Software

If you are testing an asp.net 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 http://aspnetcafe.com/tools/machineKey.aspx 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.

 

<system.web>

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

</system.web>

Hope that solves your valuable hours to programming...

Tags:

Asp.Net

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