It is so frustrating when you just visit your site and start seeing error that says Validation of viewstate MAC failed.

I once used to face this error and after so much research, I came across the solution below which resolve my solution.
The final solution is below
<system.web>
<machineKey validation="SHA1" validationKey="A1B2C3D4E5F6F6E5D4C3B2A1A1B2C3D4E5F6F6E5D4C3B2A1A1B2C3D4E5F6F6E5D4C3B2A1A1B2C3D4E5F6F6E5D4C3B2A1A1B2C3D4E5F6F6E5D4C3B2A1B2C3D4E5" decryption="Auto" decryptionKey="A1B2C3D4E5F6F6E5D4C3B2A1A1B2C3D4E5F6F6E5D4C3B2A1" />
<compilation debug="false" />
<httpRuntime targetFramework="4.5" />
</system.web>