Validation of viewstate MAC failed (YSOD) when logging into Sitefinity on live site
Hi,
When I sometimes login to Sitefinity on my live site, I get this error:
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.
My site is hosted on a shared hosting provider (DiscountASP.NET). How can I resolve this error?
Thanks
Hi G S S,
You can try to add the following lines in your web.config
<system.web>
<pages enableViewStateMac="false" />
</system.web>
or register the machine key in the web.config as the error suggests, but I believe that this is not possible, because you are on shared host.
You might find this post useful.
Regards,
Ivan Dimitrov
the Telerik team
Thanks,
I modified my web.config as mentioned, problem seems to have gone away now.