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
10/20/2010 8:02 AM
 
There are few more outstaning ViewState Mac errors in the event log, but these are now specific to a IE browser.
To resolve these errors you will requre clients assistance as they will have to change certain things in browser Internet Options....

1.Chose Internet options from Tool menu
2.In General Tab click on first Settings button (the one next to Delete button)
3.By default Automatic is selected, change that to Every Time I visit the web page and save

IE tends to cache web pages for performance reasons and sometimes cached view state cannot be read.
 
New Post
4/14/2011 6:53 AM
 
Hi,

I was getting Validation of viewstate MAC failed errors on DNN 4.9 - I upgraded to 5.6.2 and now they have increased almost twice as much. Using Windows 2003 - IIS6 - .Net Framework 3.5 on a standalone web server.

Seems like options I can try are these:
1. Try the above HotFix from Microsoft mentioned by Rodney - not sure about the implications of aspnet:IgnoreFormActionAttribute in DNN.
2. Try the code change in Page_Init mentioned by Dusan. I believe this error relates to when a user in an expired session clicks on a link. In my case users also get errors as soon as they come on a encrypted page or click on logout. (random cases not always)
3. Try disabling viewstate encryption mentioned in the post below: - I understand this is a major security risk.
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/postid/125010/scope/posts/Default.aspx
4. Change Page State Persistence in Host Settings to Memory - Again comes with a big red warning that some modules accessing viewstate via ajax won't work.

Please let me know if there is a possible solution that doesn't come with a risk or if any of the above solutions is feasible enough.

Regards
Arif Shah
 
New Post
4/14/2011 10:16 AM
 
MSIE 2.0d?????????
 
New Post
4/14/2011 10:33 AM
 
Sorry, what are you referring to Carlos?
 
New Post
4/14/2011 12:00 PM
 
Sorry, I thought you would see the obvious issue (at least it is obvious in my head).

Regarding the error "Validation of viewstate MAC failed", in my opinion, you should not worry about it too much.  I have seen it a million times in my sites but almost every time, when you look at the UserAgent line, there is almost always something wrong about it.  In the case of my cryptic message, I was referring to the original poster's log UserAgent line, which is "UserAgent: Mozilla/1.22 (compatible; MSIE 2.0d; Windows NT)".  The UserAgent identifies the detected characteristics of the client’s browser, O/S, and other available items.  As a reference, look at the line below from one of my DNN sites after I connected with my laptop, which runs IE8 on WinXP (TabletPC Edition).

UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Tablet PC 1.7; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)

That site is still running DNN 4.9.5 by the way.  Notice the version numbers for Mozilla, IE, Windows itself, as well as the other components.  In my opinion the client having the viewstate MAC issue is overdue for some upgrades.  I have also seen the viewstate problem with obscure spiders/bots accessing my Web sites and I really don’t care about them.  This issue does not happen with the spiders for Google, Bing, Yahoo, etc.  The other instance when the viewstate issue happens, is when someone is attempting to access your site via script, maybe trying to penetrate, looking for vulnerabilities, etc.  Whenever this happens, look at the UserAgent signature, most of the time there is something strange about it.

Also, and another tell-tale factor that tells me the client having the viewstate issue is not a legitimate user, is when you see the error in the log many times within a minute.  This is the sign of an automated client and not a human on the other side.  Plus, are you getting support calls from users telling you they cannot login???  I bet you are not.

Again, I don’t worry too much about the viewstate issue.  When I do see it happening a lot, I research the client’s IP address, which is included in the error message, and again, most of the time is a very suspicious source, so I block it (or the whole address range where they belong) in IIS.  For instance, the address in the original post is 188.92.72.168, just do http://whois.sc/188.92.72.168.  This particular client is in Latvia/Amsterdam.

One more thing, regarding IE security settings, I have tested this from my kids PCs, which are running with very limited access, regular user account in XP, secure settings in IE, etc. and the viewstate issue does not happen.

Sorry for the long post, I was overcompensating for the previous short one.

Carlos
 
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