Answered Validation Of Viewstate MAC failed

  • Monday, August 01, 2011 9:53 AM
     
     
    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?

All Replies