Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I m developing web application in asp.net
I m facing problem from last two days. while i have some changes in web.config file.

I have got the following error:
System.Web.HttpException: Validation of viewstate MAC failed.

full discription:
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.

I did search on internet, but I am not getting the solution.

Can anyone help me please

thanks in advance.
Posted
Updated 27-Mar-11 23:53pm
v2

1 solution

Set enableEventValidation to false and viewStateEncryptionMode to Never as follows:

HTML
<pages enableeventvalidation="false"
    viewstateencryptionmode="Never">


Did you try the MSDN article @ http://blogs.msdn.com/b/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900