I got the following error on an ASP.Net application:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
However
does not solve the problem.
The fix can be simpler:
Add PostBackUrl=’#’ to the control causing the postback.