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 ...Got the 'Validation of viewstate MAC failed.' error when opening the last closed browser tab.Got the 'Validation of viewstate MAC failed.' error when opening the last closed browser tab.
Previous
 
Next
New Post
12/10/2012 7:22 PM
 

Hi,

The problem was first found when one of our testers opened the last closed tab from Chrome/Firefox and saw a black empty page. Then I went to DNN's event viewer and got the exception information below.

I don't want to disable MAC validation as it introduces security vulnerabilities. The web site is using a pair of pre-generated validationKey/decryptionKey and is running on a single server instead of a Web Farm or cluster. Could someone advise another way to fix this issue?

Thanks a lot!


AssemblyVersion: 6.1.4
PortalID: 0
PortalName: Xxxxx Xxxxx
UserID: -1
UserName:
ActiveTabID: 2010
ActiveTabName: XxxxxxXxxxxx
RawURL: /xxxxxxx.aspx?bookId=38&chapterId=928&chapterItemType=unit&unitId=4073
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.xxxxxx.com.au/xxxxxx.aspx?bookId=38&chapterId=928&chapterItemType=unit&unitId=4073
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: d51e89d5-9dd4-4af9-96af-114ded31339f
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:
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: 203.19.96.5 Port: 26668 Referer: http://www.pearsonplaces.com.au/pearsonreader.aspx?bookId=38&chapterId=928&chapterItemType=unit&unitId=4073 Path: /Default.aspx User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0 ViewState: /wEPDwUKMTkwNjA1NjgwNQ9kFgZmDxYCHgRUZXh0BXk8IURPQ1RZUEUgaHRtbCBQVUJMSUMgIi0vL1czQy8vRFREIFhIVE1MIDEuMCBUcmFuc2l0aW9uYWwvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIveGh0bWwxL0RURC94aHRtbDEtdHJhbnNpdGlvbmFsLmR0ZCI+ZAIBD2QWDgIFDxYCHgdWaXNpYmxlaGQCBg8WAh4HY29udGVudAVmUGVhcnNvbiBQbGFjZXMgaXMgdGhlIGdhdGV3YXkgdG8gZGlnaXRhbCBsZWFybmluZyBtYXRlcmlhbCBmb3IgdGVhY2hlcnMgYW5kIHN0dWRlbnRzIGFjcm9zcyBBdXN0cmFsaWEuZAIHDxYEHwJkHwFoZAIIDxYCHwIFI0NvcHlyaWdodCAyMDEyIGJ5IFBlYXJzb24gQXVzdHJhbGlhZAIJDxYEHwJkHwFoZAIKDxYCHwIFDlBlYXJzb24gUGxhY2VzZAINDxYCHwIFDUlOREVYLCBGT0xMT1dkAgIPZBYCAgEPZBYEZg9kFgJmDxYCHwFoFgJmD2QWAmYPZBYGAgMPEGRkFgBkAg8PZBYCZg8PFgYeCEltYWdlVXJsBRQvaW1hZ2VzL2NvbGxhcHNlLmdpZh4NQWx0ZXJuYXRlVGV4dAUITUlOSU1JU0UeB1Rvb2xUaXAFCE1JTklNSVNFFgoeB3VzZXJjdHIF... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowMacValidati (Exception inner, String persistedState) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) 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 ---



 
New Post
12/11/2012 2:57 AM
 
this usually happens, if post packs are not properly executed. Make sure to store viewstate on the page, not in memory.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Got the 'Validation of viewstate MAC failed.' error when opening the last closed browser tab.Got the 'Validation of viewstate MAC failed.' error when opening the last closed browser tab.


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