Click here to Skip to main content
15,908,775 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
After session time-out, when I click on any button in my application I get the following error:

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.</machinekey>


Please help me to resolve this.
Posted
Updated 28-Jun-11 1:45am
v4

Try setting <pages enableeventvalidation="false" viewstateencryptionmode="Never">

Ref: http://blogs.msdn.com/b/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx[^]
 
Share this answer
 
Perhaps this might get you started: Validation of viewstate MAC failed error[^].
 
Share this answer
 
Check the same discussion here.

http://forums.asp.net/t/955145.aspx[^]
 
Share this answer
 
I googled the error and got 12,000 results back.

Here's one:

http://forums.asp.net/t/955145.aspx?PageIndex=20[^]

If that doesn't answer your question, here is a link[^] to all 12000 results.
 
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