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

Forums / Deployment / GoDaddy Shared Hosting

GoDaddy Shared Hosting

2 posts, 0 answered
  1. alo
    alo avatar
    23 posts
    Registered:
    02 Jan 2009
    24 Sep 2015
    Link to this post

    My Sitefinity website is deployed using GoDaddy's  shared hosting which uses a web farm.  I'm getting a "Validation of viewstate MAC failed" error (see below).  It looks like the cure is to add a machinekey entry into the web.config file, but when I do this I get an internal server  error 500.  I've got to believe Sitefinity runs in GoDaddy's shared hosting environment.  Any suggestions on how to correct 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.

    See http://go.microsoft.com/fwlink/?LinkID=314055 for more information.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: 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.

    See http://go.microsoft.com/fwlink/?LinkID=314055 for more information.

    Source Error:

    [No relevant source lines]

    Source File: c:\windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\5a29e4d4\3e5d307b\App_Web_39c2063d-5e94-6235-ab28-ff0000bff8e4_81t443621a48_identitycontrol.aspx.d63928b6.r76ah7y6.0.cs    Line: 0

    Stack Trace:

    [ViewStateException: Invalid viewstate.
            Client IP: 99.177.189.144
            Port: 57681
            Referer: https://www.identitycontrol.com/identity-theft/identity-theft-causes
            Path: /identity-theft/identity-theft-causes
            User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
            ViewState: /wEPDwUKLTE1NTc5Nzg3MGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFOGN0bDAwJGNwaEJyZWFkY3J1bWJzJFQ0NDM2MjFBNDAwNyRjdGwwMCRjdGwwMCRCcmVhZGNydW1iehvDAk9ak7SIxcwVt1QQBjE106l3J7xhiO9OSbG3RMY=]

    [HttpException (0x80004005): 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.

    See http://go.microsoft.com/fwlink/?LinkID=314055 for more information.]
       System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +116
       System.Web.UI.ObjectStateFormatter.Deserialize(String inputString, Purpose purpose) +432
       System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter2.Deserialize(String serializedState, Purpose purpose) +8
       System.Web.UI.Util.DeserializeWithAssert(IStateFormatter2 formatter, String serializedState, Purpose purpose) +40
       System.Web.UI.HiddenFieldPageStatePersister.Load() +248
       System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +272
       System.Web.UI.Page.LoadAllState() +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6704
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
       System.Web.UI.Page.ProcessRequest() +72
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
       System.Web.UI.Page.ProcessRequest(HttpContext context) +58
       ASP.sfpageservice_39c2063d_5e94_6235_ab28_ff0000bff8e4_81t443621a48_identitycontrol_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\5a29e4d4\3e5d307b\App_Web_39c2063d-5e94-6235-ab28-ff0000bff8e4_81t443621a48_identitycontrol.aspx.d63928b6.r76ah7y6.0.cs:0
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248

  2. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    09 Sep 2016
    12 Oct 2015
    Link to this post
    Hi,

    It is possible to receive such kind of messages if you are preloading the page much faster as the viewstate field is not yet loaded, and thus cannot be properly validated on the server.

    Further information regarding this error could be found in the articles below:

    http://support.microsoft.com/kb/2915218

    http://social.msdn.microsoft.com/Forums/en-US/cd9c5c03-4bf3-472b-814a-cd498b190c57/validation-of-viewstate-mac-failed-if-this-application-is-hosted-by-a-web-farm-or-cluster-ensure?forum=vstswebtest

    I want to inform you that this error is related to ASP.NET not Sitefinity itself and could be observed on other applications.


    Regards,
    Stefani Tacheva
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered