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...Performance and...Performance and...Validation of Viewstate MAC FailedValidation of Viewstate MAC Failed
Previous
 
Next
New Post
7/13/2012 11:20 AM
 

I wasn't sure where to put this question, but hopefully this is an OK place.

I've been getting a few errors over the last two days about "Validation of viewstate MAC failed." with the login return URL.

E.g.

Page Load Exception

RawURL: /Login/tabid/697/Default.aspx?returnurl=%url_removed_for_privacy.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: https:/mydomain.com/Login/tabid/697/Default.aspx?returnurl=%url_removed_for_privacy.aspx

UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; NP10)

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 06bc6e83-f6b7-4348-8877-8c00eb5f08b0

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.

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: 10.5.61.86 Port: 50435 User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; NP10) ViewState: X3zeplQoGADSBMG2XXJYujFEdJZQp/fcSs+ladfvuYi/ykQuDIPrP04g+cnS0IgjZdukX7vkI211CSr8+oWHYzVb45CFp+YCezEbBv7NsISlr1alZdxF7qIpn1gh0Nd7YkYIue68Y+bkRAkjfwYU0oMZLXM5LaYHR6ijwRKBU0gnT82ZXMgDg+7hZre9HLanG9NV45rmxsx161lAH03nQ/F7KZtmqJslCMqfXrpFjUl9cP+o0gwxsv+2jUNOu6LDrP6E/Uw89ZhaOBgW5r8+S8ELudrGHOdgbyTlh+DHKNJtzR7tLXv99lAqdgxomeNBM81yl6ru+mf8m3Z+BtmeCUYus+lT2sSQ53BOKVPWwUKBt+FPgMlvku0SM9s1jkP5sUWt/NpkZHIY5XKGp22+6ymZyjO5izAwr4xiCL+rftE7AvpzJQ/WouBzMwcP41gkV+zRsGqqj3KIkQEI3FIu5SbjegRQbpIuFLQOj6CTxjgRiuFpY1fpRf8rpKZgL6wc46ItikLr3zZYd3T02S0L07EuX454szCP7u/vPYQVdvPrcS6ELmnJVEi1iwteOuVIwetvcfj71ge0Hj/mnC8Qa9zsMJmUVeZHscZM+Sw072kIcbhCPWF8gOyquqTX9/wFGHUt5gqi2g8ES1RDfmyzAmZICVWv8msQ/YQKHPvnm8iJVRc08QIfaZtyhsyxeDvuDLkcy8+sSQMAxRHJnZIkxda2GrdL72qGrXJgOlkSLWKvb6ApssjAobYrycNcimh6kLHIDFPSzmYiGd34T3VX9+LqWg8VzAtdU2zLy5AVC0Jm8OLqETY8AKeHjkjvCgc+b25IY+0rjpEWu15pLRBzwgjPXHdbjpv2kc//8YuK1DP71z... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidati ) 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
7/13/2012 11:53 AM
 
Looks as you didn't use the correct Maschine Key on your web.config file.  This could caused after using a install package instead of the upgrade package on upgrade your instance.  Or on a webfarm you didn't use the same maschine key for all instances.
 
New Post
7/13/2012 12:06 PM
 

Sorry, I should have mentioned that I'm not running a web farm or web garden setup. This is a single server.

Also, no DNN full installation packages have ever been used. Only upgrade packages. 

 
New Post
7/13/2012 5:08 PM
 
there are a number of possibilities - see http://www.dotnetnuke.com/Resources/Wiki/Page/Viewstate.aspx , but the most common issue is a page that never fully loads or running in a webfarm without matching machinekeys

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...Validation of Viewstate MAC FailedValidation 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