If your dotnet application produces this error: HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
<configuration> <system.web> <pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" /> </system.web> </configuration>
<configuration> <system.web> <machineKey decryptionKey="Decryption key goes here,IsolateApps" validationKey="Validation key goes here,IsolateApps" /> </system.web> </configuration>
To create the keys that go into the placeholders above, you can use one of the available online generators, such as: