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"/>