Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Terms of Use & Validation of viewstate mac failedTerms of Use & Validation of viewstate mac failed
Previous
 
Next
New Post
4/13/2007 6:29 AM
 

I am getting a "Validation of viewstate MAC failed" error a few times a day in the log viewer. I thought maybe the upgrade to DNN 4.5.0 would solve it but no such luck. The website isn't hosted on a web farm or cluster so the solution hinted at in the log detail isn't much use.

The only common factor seems to be the "Terms of Use" page seems to  cause the error.

Any suggestions about how to troubleshoot the problem further

AssemblyVersion: 04.05.00
PortalID: 0
PortalName: MyPortal
UserID: -1
UserName:
ActiveTabID: 73
ActiveTabName: Entry Qualifications
RawURL: /Courses/DigitalMedia/EntryQualifications/tabid/73/ctl/Terms/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.website.sample/MyAccount/tabid/67/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 95cb0c96-c798-45a9-a94e-e3ea41544edb
InnerException: 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.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Configuration.MachineKeySection.GetDecodedData
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: 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.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. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 221.251.35.52 Port: 4119 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ViewState: /wEPDwUKLTIyODM3NTczMw9kFgZmDxYCHgRUZXh0BT48IURPQ1RZUEUgSFRNTCBQVUJMSUMgIi0vL1czQy8vRFREIEhUTUwgNC4wIFRyYW5zaXRpb25hbC8vRU4iPmQCAg9kFgwCAQ8WAh4HVmlzaWJsZWhkAgIPFgIeB2NvbnRlbnQFFkNoYW5nZSBBY2NvdW50IERl Referer: http://www.website.sample/MyAccount/tabid/67/Default.aspx Path: /Default.aspx ---> System.Web.HttpException: Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: MYServer

 
New Post
4/16/2007 10:10 AM
 

From more research it appears all the errors are coming from a userID of -1 which i am assuming is used to denote non registered users. I'm also starting to think it might be related to this topic www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/194/Default.aspx .

Would anyone more familiar with these type of alerts be able to say if I should be concerned or just to live with the logging of this exception

 

 
New Post
7/23/2008 9:01 PM
 

According to PowerDNNs website this can be fixed with a web config change:

Validation of v13wstat3 MAC failed Error

ISSUE:

When browsing on your site you get the following error:

---------------------------------
A critical error has occurred.
Validation of v13wstat3 MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
---------------------------------

CAUSE:

According to Microsoft Connect,this is caused by an encrypted v13wstat3 bug in ASP.NET 2/3/3.5.

RESOLUTION

In order to resolve this issue, you will need to edit your web.config file and make the following changes:

<pages enableEventValidation="false" v13wstat3EncryptionMode ="Never" />


I'm too poor for anything other than the community version
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Terms of Use & Validation of viewstate mac failedTerms of Use & Validation of viewstate mac failed


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out