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 failed error validation of viewstate MAC failed error
Previous
 
Next
New Post
2/10/2014 7:46 PM
 

Another error I'm getting in my site, I've searched about it but haven't seen anyone with this error using asp.net 4.0. The site is just a simple installation on a windows IIS 7.0 server (no farm or cluster) . Any clues?

Thanks.

 
New Post
2/11/2014 12:50 PM
 
is it happening on each page request or just occasionally? if it's occasionally see http://www.dnnsoftware.com/wiki/Page/... for possibilities (the most common is that a page has not fully loaded before a postback occurs)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/9/2014 10:33 PM
 

Been pulling my hair out with this issue as the googled solution is not helpful.  But I noticed a pattern--the problem doesn't happen in my DEV environment, which is a jumbled mess of features I'm developing within a single portal.  But it does happen in production--where the site that the affected module is located is a sub-portal (http://main.com/subportal).  The problem doesn't happen when I'm logged in as a SuperUser, but does happen when I'm logged in as a test user with edit rights to the page and/or module.

When logged in as a test user, when returning from the Edit page to a View page, the user gets logged out and a "critical error" message is thrown.  The logs show the "validation of viewstate MAC" is the error.  I noticed that the UserId in the log is -1 (unauthenticated), which should not be the case, so I ran a test.

I installed the affected module on the main portal, logged in with a newly created test user, and the problem disappeared!

So, it doesn't affect the main portal, or a SuperUser, which has access to all portals.  So, in the database, I added a record to link my original test user to the main portal (it now has login rights to the main portal AND the subportal, but has no roles assigned to it in the main portal so on the main portal he has access to only the public pages for unauthenticated users).  The table is dnn_UserPortals.  

This resolved the error for me.  Now, when the test user is logged in to the subportal and returns to the View page from the Edit page, it works just fine.

 
New Post
4/10/2014 8:11 AM
 
glad you've found it, but I think the problem is within the module. In DNN the host user is special as they are an admin in every portal, so moving between portals does not log them out. Similarly if a request makes it to a dnn site but cannot be resolved, then DNN loads the default (first) portal - so typically when you see an issue such as this the problem is either that the module contains a .net mapped request to a file outside the DesktopModules folder (and this request is interpreted by DNN as a change of portal, causing the user to be logged out), or that the portal alias's/IIS binding for the DNN site is wrong. As the child portal is loading the 2nd example will not be the problem, so it's likely the first - to check, use a http proxy such as fiddler and access the module in the child portal. View the requests and see if anything goes to the primary portal (e.g. perhaps a request such as mysite.com/portals/0/somefile.aspx), or calls a .net mapped request (.aspx/.asmx etc.) outside desktopmodules (e.g. mysite.com/myservice.asmx or mysite.com/thumbnail.ashx). If you see that you need to either rearrange the code so the file is within the desktopmodules/ folder, or ensure the requests have a portalid appended so DNN can assess that the request came from a user of that portal (i.e. mysite.com/myservice.asmx?portalid=1)

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 failed error validation of viewstate MAC failed error


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out