1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Validation of viewstate MAC failed (YSOD) when logging into Sitefinity on live site

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

3 posts, 0 answered
  1. G S S
    G S S avatar
    71 posts
    Registered:
    16 Mar 2008
    12 Feb 2011
    Link to this post
    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
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    16 Feb 2011
    Link to this post
    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
  3. G S S
    G S S avatar
    71 posts
    Registered:
    16 Mar 2008
    17 Feb 2011
    Link to this post
    Thanks,

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