Validation of viewstate MAC failed (YSOD) when logging into

Posted by Community Admin on 03-Aug-2018 00:16

Validation of viewstate MAC failed (YSOD) when logging into Sitefinity on live site

All Replies

Posted by Community Admin on 12-Feb-2011 00:00

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

Posted by Community Admin on 16-Feb-2011 00:00

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

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 17-Feb-2011 00:00

Thanks,

I modified my web.config as mentioned, problem seems to have gone away now.        

This thread is closed