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 failedValidation of viewstate MAC failed
Previous
 
Next
New Post
2/22/2008 9:01 AM
 

 

Hi all,
recently, taking a look at the log i find some exceptions like the following one. Do you have any suggestion about this problem?

AssemblyVersion: 04.04.01
PortalID: 0
PortalName: mysite.com
UserID: -1
UserName:
ActiveTabID: 54
ActiveTabName: Blogs
RawURL: /DesktopModules/Blog/Blogs/tabid/54/EntryID/4/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.mysite.com/Blogs/tabid/54/EntryID/4/DesktopModules/Blog/ImageChallenge.captcha.aspx?captcha=1C6F8734876963E026BE2E889AD487E40D3A7EDFB9A4ACA8C5642577BB9E922F41A163F92CD97A0A02F6A0A89A34E33306EE6D5D6CD8B4737A9C945183D16E049CBF96D06F02F51A653EE1F24B39D3F9480C4083EC5706A556D4AD3C6875A60CB30685B9AB4CDFE1CB762E8DCB4B0C558CD57A4C3ADB72F0
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 077d6c5a-99ce-429a-8e42-77651afcbb73
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: 66.65.47.104 Port: 42152 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 ViewState: /wEPDwUKLTIyODM3NTczMw9kFgZmDxYCHgRUZXh0BT48IURPQ1RZUEUgSFRNTCBQVUJMSUMgIi0vL1czQy8vRFREIEhUTUwgNC4wIFRyYW5zaXRpb25hbC8vRU4iPmQCAg9kFgwCAQ8WAh4HVmlzaWJsZWhkAgIPFgIeB2NvbnRlbnQFCkJsb2dzIHBhZ2VkAgMPFgIfAgWQAk5ldERydWlkcywgTWFkRHJ1aWQsIEFsZXNzYW5kcm8gR2FsYXNzbywgSW5mb3JtYXRpb24gVGVjaG5vbG9naWVzLCBEb3QgTmV0IE51a2UgTW9kdWxlcywgLk5FVCBGcmFtZXdvcmssIEdJUywgUGFyYWxsZWwgY29tcHV0YXRpb24sIEdhbWVzIERldmVsb3BpbmcsIE1vYmlsZSBEZXZlbG9waW5nLCBDaGF0IGJvdHMsIEJ1c2luZXNzIHJ1bGVzIGFwcHJvYWNoLCBUYXhvbm9taWVzIGFuZCBvbnRvbG9naWVzLCBTZWN1cml0eSwgQ29zZW56YSwgTmV0IERydWlkcywgTmV0IGRydWlkZAIEDxYCHwIFH0NvcHlyaWdodCAyMDA3IGJ5IE5ldERydWlkcy5jb21kAgUPFgIfAmRkAgYPFgIfAgUNTmV0RHJ1aWRzLmNvbWQCBA9kFgICAQ9kFgICAw9kFgJmD2QWDgIJD2QWAgICDw8WBh4IQ3NzQ2xhc3MFCEdvQnV0dG9uHwAFAsKgHgRfIVNCAgJkZAILD2QWAgIBD2QWBGYPDxYCHwFoZGQCAg9kFgICAg9kFgJmD2QWAmYPPCsACQEADxYIHgpTaG93Rm9vdGVyaB4IRGF0YUtleXMWAB4LXyFJ... ---> 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: WEBS147

 
New Post
2/22/2008 7:52 PM
 

This is one of the last few errors that still show up in my installation every day. It seems to affect the forum page, but all has others listed.

I've never actually seen it happen in real time so I don't know if it actually causes an error for the site visitor or not.

I'd certainly also like to know how to get rid of it.

 
New Post
3/24/2008 6:53 PM
 

Just upgraded to DNN 4.8.2 and now I'm getting this message also.

 
New Post
3/26/2008 7:14 AM
 

This problem is a bug in asp.net 2.0:

http://forums.asp.net/p/955145/1173230.aspx

I've solved this problem by adding some code to the page directive in my asp.net (not dnn) site. Add viewstatemac="false" in your page directive.

 
New Post
11/9/2008 1:39 PM
 

Sorry for being so ignorant, but how do we do this??  Can someone confirm this solution works??

Thanx!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...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