Validation Of Viewstate MAC failed

Posted by Yjeevanrao under ASP.NET on 8/1/2011 | Points: 10 | Views : 3152 | Status : [Member] | Replies : 1
Hi All,

I am getting bellow error some times while running the application at production server. When running the same application at test server it working fine.

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

I have found this while googling. it is using the following in the web.config of
website: enableViewStateMac="false" viewStateEncryptionMode="Never" enableEventValidation="false"


Is there any other way to fix this. Is there something in IIS or the web.config I can set to stop this message randomly coming up?
Regards,
Jeevan.

Jeevan


Responses

Posted by: SheoNarayan on: 8/1/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down

Read this http://www.shnake.com/blog/?p=604, you can also read http://forums.asp.net/t/1057105.aspx.

thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Yjeevanrao, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response