Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have getting this error ...

"validation of viewstate mac failed. if this application is hosted by a web farm or cluster ensure the same validation key and validation algorithm .autogenerate can not be used in cluster"

i have googled very much and i also read the question which is posted before on code project .But nothing is worked in my case , my application is hosted on a VPN. and i am using framework 4.0 .



and things that i tried are ...

XML
<pages controlrenderingcompatibilityversion="3.5" clientidmode="AutoID" validaterequest="false" enableviewstatemac="false" enableeventvalidation="false" viewstateencryptionmode="Never" />



and also tried this or both ...
XML
<machineKey validationKey="EAE9A8ECB918758B45CC829F69A13C1E9F34CD37B0BB9D1D7CAA99F1F967C401BB869F03CC5A229C5D4EE15681A8E681EBD1B894BDEFA26ECD7EB693E639995D"
  decryptionKey="66B8AB89349754CA229B5EFAC9DE572E939D1DA8EF28F389D3D6347FDC66CD67" validation="SHA1" decryption="AES" />

please suggest fnds something what to do ...
Posted
Updated 8-Jul-15 22:00pm
v8
Comments
Ben J. Boyle 9-Jul-15 10:30am    
Don't know if this will help you but try taking out enableviewstatemac="false" from your code - a security update from MS has removed support and it might be causing you issues.

http://blogs.msdn.com/b/webdev/archive/2014/09/09/farewell-enableviewstatemac.aspx

Your machine key entry looks to be OK, and that's all we've needed to configure on our farm enabled projects.

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

  Print Answers RSS


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