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...Upgrading DNN P...Upgrading DNN P...Exception: Validation of viewstate MAC failed.Exception: Validation of viewstate MAC failed.
Previous
 
Next
New Post
6/21/2010 2:05 PM
 
Event viewer error being logged after upgrade from 5.1.4 to 5.4.3:

I've done some looking into this and a lot of people agree that it is a "problem" with the .NET Framework in that when a button on an encrypted form is clicked before the <form> is completely loaded this error is encountered. Some suggest disabling all the form elements until the form is completely loaded, some suggest editing the web.config to disable encryption, but neither of these sounded like permanent fixes to me. Has the DNN Team looked into this and if so are there any solutions being explored or already available?

ActiveTabName: Order Status
RawURL: /Orders/OrderStatus/tabid/187/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: https://.../Orders/OrderStatus/tabid/187/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 2b9e6f10-0633-4f21-9178-b3248beb068d
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.EncryptOrDecryptData
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: 172.20.111.21 Port: 34685 User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618) ViewState: 2kwwNa+DrytpiJYNXUFi2QuaKGNMpoqaGMFTmbhwvv+4CizTK64UDZr/K7MWjD7My80luB/Wq74RzQe2v5fLvecU3udOhVy4cCfP+rH3p8TPN61+spEySUgPWC1snu/eriWoot5+qUVZ2D4zizCN245/fEYJTPRmTxDFJufSWCkav4Zi7i/fqnCogbPHmWwwDNyUa/S1zXVxf9/0oLmAGpteENZs5P15tL8t5IaYRRZT1xMlYsbJp2MRySpmMKeMcwnGs8RPin+97lrm6YvWqgE3DHSo7Qnszt7nuWXzXI9Sup8nzBEUVxw6W60DkRVGKfB/o6FgFo7Oj/f4aNSR0LSh6A/r4ugOPr6+GA68DQEJq11C52Wh8h72a6rN92SrURxtdRWBvEpwF4acCGmDwVqARcqGwoRh0QKdWqqxHZC5mlms+3dw8GdF/k+mwTDGVlKfZEHPB02BrOS8FfIEcvDlAdkShXy76JpmgpXXcaMrByk7peTmVcxl2OAb7lkq4OQ/HeO67v98i+pQOB6CnUNb/pXADgM2rbcrAKKAL15eRFI9NfaqL+pvwoKdwyFdskrXDKlLyjY5VorxVzbAXon2Y+3mWQyp2zxSeLzyftna8XW8PVz/yjE/rKHjeYZPDlgXo4yF7vRSNCOpqy4rJgi4OBl96I/mV0J5ibF1w1EZchxyS7HVvVcOGuSFStWKuWXGjtbU8Fqw5xx99EKw8buLKxic3y2Ylk0fMOYXzIE+WvffPTXfFyEO/xiKhPorofTA21rDBgv82ImO1... ---> System.Web.HttpException: Unable to validate data. at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) 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.ViewStateException.ThrowMacValidationError(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 System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Any additional insight or future fix would be appreciated.

Thank you!


Josh
 
New Post
9/21/2010 2:24 PM
 
Josh - Did you ever get an answer on this?

I have moved a DNN 5.05 site and I am having this error.  I think it is related to SSL as I had to move the certificate to the new web server and I seem to have problems with the pages.

Basically, I am seeing the event when new users register (form).
 
New Post
9/24/2010 12:33 PM
 
Steven

I have not received any other information on this.

Here is a pretty good explanation to the problem and some possible solutions:
http://blogs.msdn.com/b/tom/archive/2...

I've been waiting to upgrade and see if that fixes it, if not then I may pursue other means to resolving the issue myself.

Good luck!


Josh
 
New Post
10/13/2010 2:02 AM
 
Having upgraded from 5.4 to 5.5.1, I am now getting this error with almost every user.
VALIDATION OF VIEWSTATE MAC FAILED
There are many blog entries on work arounds, but this porblem needs to be fixed definitively.

eg.
http://blogs.msdn.com/b/tom/archive/2...
http://web3.dotnetnuke.com/Community/...

Any suggestion as to a resolution?

Thanks
JC
 
New Post
4/14/2011 7:23 AM
 
Did anyone find a solution to this. I am getting the same error for alot of our users on DNN 5.6.2 site. Just going through various posts on the forum where people have reported the problem but no definite solution. Please see following page for one of similar discussions on this topic but no result:
http://www.dotnetnuke.com/Resources/Forums/tabid/795/forumid/108/postid/415042/scope/posts/Default.aspx#415042


Regards
Arif Shah
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Exception: Validation of viewstate MAC failed.Exception: 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