Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello EveryOne..

I have hosted my ASP.NET web application on server and its working fine. but sometimes when i try to browse pages, i get follwing 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.

Can anyone knows the Reason and Solution of this error..???

Thanks in Advance..
Posted

Hi ,
Check this one
Here[^]
Best Regards
M.Mitwalli
 
Share this answer
 
Put the same machinekey on all the servers (usually it happens when application is hosted on multiple servers in a cluster or webfarm)

P.S. - the machinekey will go inside System.web section in web.config.

XML
<system.web>

        <machineKey validationKey=’3AE041467624C0947FE562E2DBE6122B532FBC4AA9845AE3D82EC6AC473104EA40A27F8E89BADDAEE44B1F7582FC47299B674ED1FD2DDE1368710504EB2C54C1′ decryptionKey=’2FC79A393A5A463F82D38828F43ED7D030C418B448C9E76C’ validation=’SHA1′/>

    </system.web>
 
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