Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI I was using visual studio 2008
now I upgraded to 2010
I cant run the application showing an error
"
VB
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.

"


could you please help me on this ..
i have no idea in this error
Posted
Updated 25-Aug-14 18:54pm
v3

1 solution

Just generate a new one and add it:
http://aspnetresources.com/tools/machineKey[^]

Good luck!
 
Share this answer
 
Comments
sushma_bhardwaj 25-Aug-14 11:14am    
Hi i have generated and machine key but its not working .. same error.... is there any other mistake?

because it was working properly in vs 2008. i dont know whats wrong ..
E.F. Nijboer 26-Aug-14 9:01am    
Try using AutoGenerate. Check the link. On the bottom of the page in the remarks you find an example:

http://msdn.microsoft.com/en-us/library/vstudio/w8h3skw9%28v=vs.100%29.aspx

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