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

Same question is there in stack overflow and asp.net forum as well, but any of the work around is not fixed my issue.

I am getting above error when I post data from one asp.net page to another page in different web site(hosted in SSL). I have try with adding same machine key in both application and try to give page attribute like below

<pages  validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false" >

 <machineKey validationKey="06E158563F2028028595BDF5943CAE28A95CEA4F" decryptionKey="8DB0D34A423D3C714E548AB4BA80040C789F4E01B9AAE6D27E6363E5DA154702" validation="SHA1" decryption="AES" /> 

But still I am getting the same error. Please note I am using VS 2013, Latest ASP.net version and Application hosted in SSL.

Please provide a solution.

Related posts

Recent Viewed