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

Forums / Bugs & Issues / Validation of viewstate MAC failed

Validation of viewstate MAC failed

2 posts, 0 answered
  1. Nicholas Westbrook
    Nicholas Westbrook avatar
    6 posts
    Registered:
    10 Nov 2009
    31 May 2010
    Link to this post
    Trying to set up a fresh Sitefinity site: On "http://localhost/acmw/sitefinity/cmsstartup.aspx", I'm at the "Set Database" step. When I enter the correct information to connect to my localhost, I'm getting the following error:
    Server Error in '/ACMW' Application.
     
    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.
     
    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.
     
    Source Error:
     
     
    [No relevant source lines]
     
    Source File: c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\acmw\f92145ef\784a58e\App_Web_mz-wyjdm.0.cs    Line: 0
     
    Stack Trace:
     
     
    [HttpException (0x80004005): Unable to validate data.]
       System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +289
       System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +140
     
    [ViewStateException: Invalid viewstate.
        Client IP: ::1
        Port: 49302
        User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
        ViewState: /wEPDwUKMjA2OTY3MzYxNg9kFgICARBkZBYCAgkPZBYCZg9kFgICAQ9kFgJmD2QWAmYPZBYCZg9kFghmDxYEHglpbm5lcmh0bWwFa1RoZXJlIHdhcyBhbiBlcnJvciB0cnlpbmcgdG8gY29ubmVjdCB0byB0aGUgRGF0YWJhc2UgU2VydmVyOjxiciAvPiBMb2dpbiBmYWlsZWQgZm9yIHVzZXIgJ3NpdGVmaW5pdHlfdXNlcicuHgdWaXNpYmxlZ2QCAQ8WAh8ABQxTZXQgRGF0YWJhc2VkAgIPZBYCAgEPZBYCAgIPZBYCZg8QDxYCHgdDaGVja2VkZ2RkZGQCBA8WAh8BZxYEAgEPEA9kFgIeB29uY2xpY2sFKkVuYWJsZVByb3BlcnRpZXMoIXRoaXMuY2hlY2tlZCwgc3FsUHJvcHMpO2RkZAICD2QWBAICDxYCHgVzdHlsZQUJZGlzcGxheTo7ZAIDDxYCHwQFCWRpc3BsYXk6O2QYBAUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgoFHXdpemFyZCRjdGwwMCRjdGwwNCRTcWxFeHByZXNzBR13aXphcmQkY3RsMDAkY3RsMDQkU3FsRXhwcmVzcwUgd2l6YXJkJGN0bDAwJGN0bDA0JFNxbFNlcnZlcjIwMDAFIHdpemFyZCRjdGwwMCRjdGwwNCRTcWxTZXJ2ZXIyMDAwBSB3aXphcmQkY3RsMDAkY3RsMDQkU3FsU2VydmVyMjAwNQUZd2l6YXJkJGN0bDAwJGN0bDA0JE9yYWNsZQUZd2l6YXJkJGN0bDAwJGN0bDA0JE9yYWNsZQU...]
     
    [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.]
       System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106
       System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14
       System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +242
       System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
       System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
       System.Web.UI.HiddenFieldPageStatePersister.Load() +207
       System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
       System.Web.UI.Page.LoadAllState() +43
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
       System.Web.UI.Page.ProcessRequest() +80
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
       System.Web.UI.Page.ProcessRequest(HttpContext context) +49
       ASP.sitefinity_cmsstartup_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\acmw\f92145ef\784a58e\App_Web_mz-wyjdm.0.cs:0
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    31 May 2010
    Link to this post
    Hello Nicholas Westbrook,

    Thank you for using our services.

    Please take a look at the following article in our Troubleshooting section Validation of viewstate MAC failed.

    Sincerely yours,
    Radoslav Georgiev
    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.
2 posts, 0 answered