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 ...Very frequent error - Validation of viewstate MAC failedVery frequent error - Validation of viewstate MAC failed
Previous
 
Next
New Post
4/14/2011 12:45 PM
 
Thanks very much for your details response Carlos. As much as I would dearly love not to worry about the errors - I have to because I have experienced them myself on the site on random occasions using IE 9. Also, found various users in the event log using IE8. Mostly, I have seen them when I logout after inactive session for more than 20 minutes. But on random occasions, just after logging in or browsing to a page as a logged in user or logging out.

The biggest concern is that users are redirected to a DotNetNuke error page - "An Error has occurred. Return to site".

I have just cleared my event log so can't put details of my errors.

The other paradox I am dealing with is I can't replicate the errors in dev or pre-production sites.

Arif
 
New Post
4/14/2011 3:57 PM
 
Here you go - I've got about 20 erros like this in event viewer in 3 hours with mostly modern versions of IE.

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Validation of viewstate 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.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Validation of viewstate 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. ---> System.Web.HttpException: Validation of viewstate 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. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 91.201.66.98 Port: 1579 User-Agent: Mozilla/6.0 (compatible; MSIE 7.0a1; Windows NT 5.2; SV1) ViewState: /wEPDwUINjE2NzQ2OTUPZBYGZg8WAh4EVGV4dAV5PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFsLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25hbC5kdGQiPmQCAQ9kFg4CBA8WAh4HVmlzaWJsZWhkAgUPFgIeB2NvbnRlbnQFpwFDaXZ2eSBTdHJlZXQgaXMgZm9yIHlvdSBpZiB5b3UgYXJlIGEgU2VydmljZSBsZWF2ZXIgb3IgaGF2ZSBwcmV2aW91c2x5IHNlcnZlZCBpbiB0aGUgVUsgQXJtZWQgRm9yY2VzIHdoZXJlIHlvdSB3aWxsIGZpbmQgdGhlIHJlc291cmNlcyBmb3IgdHJhbnNpdGlvbiB0byBjaXZpbGlhbiBsaWZlLmQCBg8WAh8CBWdDaXZ2eSBTdHJlZXQsIFRyYW5zaXRpb24sIENpdmlsaWFuIExpZmUsIFNlcnZpY2UgTGVhdmVyLCBFeC1zZXJ2aWNlbWVuLCBSZXNldHRsZW1lbnQsIExlYXJuaW5nIGFuZCBXb3JrZAIHDxYCHwIFDENpdnZ5IFN0cmVldGQCCA8WBB8CZB8BaGQCCQ8WAh8CBSpDaXZ2eSBTdHJlZXQgLSBUcmFuc2l0aW9uIHRvIENpdmlsaWFuIExpZmVkAgwPFgIfAgUNSU5ERVgsIEZPTExPV2QCAg9kFgICAQ9kFgZmD2QWAmYPFgIfAWgWAmYPZBYCZg9kFgYCAw8QZGQWAGQCDw9kFgJmDw8WBh4ISW1hZ2VVcmwFFC9pbWFnZXMvY29sbGFwc2UuZ2lmHg1B... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidati ) at System.Web.UI.ViewStateException.ThrowMacValidati (Exception inner, String persistedState) 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 Delisoft.DNN.PageBases.MyLocale.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: WWW01
 
New Post
4/14/2011 4:35 PM
 
Arif:

I see.  Do all errors look like the last one in your post?  Meaning, that some entries have a "-1" instead of the actual data.  I don't know why that is but it is strange.

Also, what is Delisoft?  I presume is a third party module.  Did you test it on 5.6.2 before migrating your production site?  What does the module maker say about compatibility with 5.6?  Related to this module, there may be something related to the Locale or language settings.  The client in question is in Russia.  I don't know enough about localization to help you in this area as I don't use it.

Sorry I cannot help you more, but hope these pointers do help.

Carlos
 
New Post
4/15/2011 10:57 AM
 
Yes alot of them with UserID "-1" and some more for logged in users. Delisoft is a content localisation module we have used for last 3 years - I believe this was one of the earliest content localisation solutions for DNN, not sure if it is still the best.

I can't afford to move to a different localisation solution right now - so I will look up their site and contact the developer. What does surprise me though is that I have found quite a lot of posts with these errors reported, some of them with suggestions to try but none of them have a definite solution.

Thanks very much and really appreciate your time though. Will come back if I do find a solution.

Arif
 
New Post
4/15/2011 7:08 PM
 
Dear Arif. You are seeing the error inside DSLocalizator because you are using a feature of it named "SQL in viewstate". This feature has nothing to do with localization and you only need to enable it if you are really wanting to move the viewstate to a SQL table. The solution for you is to disable it in the DSLocalizator module. It will not cause any problem to localization

Also, as you can see in the first post of this thread, Rodney is receiving the same error without DSLocalizator...so this seems to be related to something else changing the viewstate or its encription.
Please, try disabling this feature

Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Very frequent error - Validation of viewstate MAC failedVery frequent error - 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