c# - Validation of viewstate MAC failed ASP.NET -
i receiving error message below:
validation of viewstate mac failed. if application hosted web farm or cluster, ensure configuration specifies same validationkey , validation algorithm. autogenerate cannot used in cluster.
after lots of search, found document https://support.microsoft.com/en-us/kb/2915218
in above document found below section
appendix a: how generate machinekey element
in section, there function generate <machinekey> don't know put code in application , how call function.
generate machine key using link
<machinekey validationkey="56ab7132992003ee87f74ae4d9675d65eed8018d3528c0b8874905b51940deaf6b85f1d922d19ab8f69781b2326a2f978a064708822fd8c54ed74cadf8592e17" decryptionkey="a69d80b92a16dfe1698dfe86d4ced630fa56d7c1661c8d05744449889b88e8dc" validation="sha1" decryption="aes" /> the <machinekey> should put inside <system.web> section.
follow link
Comments
Post a Comment