Validation of viewstate MAC failed in asp.net Fix [Solved]

Posted by Unknown
Validation of viewstate MAC failed in asp.net Fix

In asp.net development frequently getting error is "

Validation of viewstate MAC failed".

Generally these errors are encountered by the shared hosting server.if your application hosted in shared hosting server we need to maintain machine key in web.config for viewstate.

In order to fix this issue add bellow tag in web.config or 
generate random machine key from bellow link add it your web.config


 <system.web>
     <machineKey validationKey="C109CADC2A865FE74C26D378D33ACBF868EAD204A5F38C77C44093A800BC0889BE3637931044DA25E8ED4F035790883DF894A43B0F4FD67FD6B99E289C02AE0D" decryptionKey="D556BA2881D885FBFBBFCDBF8F7A26DAB5A793C5C10859685CBD09F7B78459BD" validation="SHA1" decryption="AES" />
    </system.web> 


Hope this will helps you
Labels:

Post a Comment

 
test