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 ...Validation of viewstate MAC failed  in DNN 4.4.1Validation of viewstate MAC failed in DNN 4.4.1
Previous
 
Next
New Post
2/28/2007 6:21 AM
 
One of my users triggered a a page load exception which had an inner exception of
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.

My DNN site is on a single dual processor box and this is the first error of this type I've encountered since upgrading from 4.4.0 to 4.4.1 about a week ago, I don't think its linked to the machineKey or validationKey in the web.config file because admins and users are able to log in, update tabs and modules.

Any ideas???

*********
AssemblyVersion: 04.04.01
PortalID: 0
PortalName: PORTALNAME
UserID: -1
UserName:
ActiveTabID: 73
ActiveTabName: Entry Qualifications
RawURL: /Courses/DigitalMedia/EntryQualifications/tabid/73/ctl/Terms/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.cdi.ul.ie/Courses/DigitalMedia/EntryQualifications/tabid/73/ctl/Terms/Default.aspx
UserAgent: Opera/9.0 (Windows NT 5.1; U; en)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: b0bf3b18-bda3-4243-ab6d-f98596c43a74
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: 201.87.13.55 Port: 2946 User-Agent: Opera/9.0 (Windows NT 5.1; U; en) ViewState: /wEPDwUKLTIyODM3NTczMw9kFgZmDxYCHgRUZXh0BT48IURPQ1RZUEUgSFRNTCBQVUJMSUMgIi0vL1czQy8vRFREIEhUTUwgNC4wIFRyYW5zaXRpb25hbC8vRU4iPmQCAg9kFgwCAQ8WAh4HVmlzaWJsZWhkAgIPFgIeB2NvbnRlbnQFYlRoZSBlbnRyeSByZXF1aXJlbWVudHMgZm9yIGFjY2VzcyB0byB0aGUgRE1EIGdyYWR1YXRlIGRpcGxvbWEgY291cnNlLiBQcmltYXJ5IGRlZ3JlZSBvciBlcXVpdmlsYW50ZAIDDxYCHwIFR0VudHJ5IFF1YWxpZmljYXRpb25zLFF1YWxpZmljYXRpb25zLCByZXF1aXJlbWVudHMsIEVudHJ5LERvdE5ldE51a2UsRE5OZAIEDxYCHwIFJkNvcHlyaWdodCBDYXJlZXIgRGV2ZWxvcG1lbnQgSW5zdGl0dXRlZAIFDxYCHwIFEERvdE5ldE51a2UgNC40LjFkAgYPFgIfAgUcQ2FyZWVyIERldmVsb3BtZW50IEluc3RpdHV0ZWQCBA9kFgICAQ9kFgICAw9kFgJmD2QWDAIBD2QWAmYPDxYEHgdUb29sVGlwBRxDYXJlZXIgRGV2ZWxvcG1lbnQgSW5zdGl0dXRlHgtOYXZpZ2F0ZVVybAUUaHR0cDovL3d3dy5jZGkudWwuaWVkZAIDD2QWBGYPDxYCHwFoZGQCAg8PFgQfAAUcQ2FyZWVyIERldmVsb3BtZW50IEluc3RpdHV0ZR8BZ2RkAgkPFgIeBXdpZHRoBQEwZAILD2QWAmYPZBYIAgEPDxYCHwFoZGQCBQ9kFgICAQ9kFgJmD2QWAgIBDw8WAh8ABd5kPGRpdiBhbGlnbj0ibGVmdCI DQo8c3BhbiBjbGFz... ---> 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: SERVERNAME
***********
 
New Post
2/28/2007 7:55 AM
 
This is caused by the browser that user has. I redirect Opera and older browsers to a page where I tell them to upgrade to Firefox or Internet Explorer latest versions.
 
New Post
2/28/2007 7:59 AM
 
Is it easy to redirect based on browser type in DNN to a page?
Also based on the agent string above the user appears to be using a new version of Opera anyway
 
New Post
2/28/2007 8:04 AM
 
'Redirect based on browser

 If Instr(Request.UserAgent(), "Opera") > 0 Or Instr(Request.UserAgent(), "Netscape") > 0  Then
Response.Redirect(http:/yourdomain/browser.html)
End If
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Validation of viewstate MAC failed  in DNN 4.4.1Validation of viewstate MAC failed in DNN 4.4.1


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