Asp.net failed to verify the view status MAC. If this application is hosted by a network farm or cluster

Source: Internet
Author: User

The complete error prompt is:An error occurred while verifying the view status MAC. If this application is hosted by a network farm or cluster, make sure that the <machineKey> Configuration specifies the same validationKey and verification algorithm. AutoGenerate cannot be used in a group.

If you encounter such a problem today, record the solution as usual to prevent you from encountering such a problem in the future.

This problem occurs after google. The solutions provided by many posts are as follows:

1: Modify the @ page attribute of the current page and add enableEventValidation = "false" viewStateEncryptionMode = "Never"
Or add <pages enableEventValidation = "false" viewStateEncryptionMode = "Never"/> in web. config.
2: Specify validationKey and Verification Algorithm in web. config.
<MachineKey validation = "3DES" validationKey = "319b474b1d2b7a87c996b280108bb36506a95aedf9b51211" decryption = "3DES" decryptionKey = "encrypt"/>

However, I modified it according to the above method, and an error is returned in the same result. Only a few solutions can solve the problem. The correct method should be:

Modify the @ page attribute of the current page and add enableEventValidation = "false" enableViewStateMac = "false"
Or add <pages enableEventValidation = "false" enableViewStateMac = "false"/>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.