Quick Nav:  Online Store   |   Login | Register

Validation of viewstate MAC failed

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
eureka
<100 Posts
Posts:84


04/11/2008 11:06 AM  

 

Hi John

I seem to have an error on the luzzu site I get an MAC Failed error when I try to log in see error log below:

 

 

ActiveTabName: Home
RawURL: /default.aspx
AbsoluteURL: /default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID: 4b2a2dbe-3213-4493-a44c-a34dd31efba7
InnerException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that 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,
Source:
Server Name: MS001

 

What do I need to change in my Snapsis.Pageblaster  config file see attached?

Thanks

Lynn

 


Attachment: 141164815671.txt


www.drivewaydesign.eu For A Dream Driveway
www.luzzucruises.com Make the most of Malta
www.a2zdom.com Domain name matters


John Mitchell
Posts:2755


04/11/2008 11:20 AM  

You shouldn't have to exclude anything, but you could add the word Login to the list of excludes in the global config.
pattern="(Login|jQuery|DesktopModules(?!/snapsis|/Xmod)|LinkClick|\.ashx|SiteMap|/admin/|/host/|feed|rss|captcha|install|thumb|cart|\.asmx)"

Does the error happen only on a specifc browser?

eureka
<100 Posts
Posts:84


04/11/2008 12:29 PM  
Hi John

Prior to this post I had only viewed using FireFox I tried using Internet Explorer and it was though I was viewing using a text reader - almost everything was missing, css, js, colours, background, images, video, flash ..............

I added the Login - to the Snapsis.PageBlaster.config but this has not made any difference.

www.drivewaydesign.eu For A Dream Driveway
www.luzzucruises.com Make the most of Malta
www.a2zdom.com Domain name matters


John Mitchell
Posts:2755


04/11/2008 12:51 PM  
I'm not seeing that in IE, or FireFox, maybe a refresh fixed it.
eureka
<100 Posts
Posts:84


04/11/2008 1:10 PM  

Hi John

I have tried a hard refresh on both but it has not helped see attached image of the same home page for Internet Explorer and FireFox (error message circled in red)










www.drivewaydesign.eu For A Dream Driveway
www.luzzucruises.com Make the most of Malta
www.a2zdom.com Domain name matters


eureka
<100 Posts
Posts:84


04/11/2008 2:29 PM  

Hi John

The login error shows up in both Internet Explorer and FireFox.

I suspect that the problem of missing colours etc., may be due to my laptop ( I have recently downloaded IE 7)  -  I viewed Snapsis via IE and your site also was without colours


www.drivewaydesign.eu For A Dream Driveway
www.luzzucruises.com Make the most of Malta
www.a2zdom.com Domain name matters


eureka
<100 Posts
Posts:84


04/12/2008 3:05 AM  

Hi John

I have viewed luzzu with different machines and the Viewstate login error is the same, also the Flash header is missing in all browsers and machines. (the IE colour loss problem is only with the laptop - missing IE file ).
I dont know if this is relevant but the "Validation Viewstate MAC" error message which is only displayed when the login link is clicked - is located in the area where the Flash Header should be.


I have tried a variety of combinations in the Snapsis.Config and web config file but it has not helped.

I managed to eventually login and view the Log Viewer - it is full of exceptions - e.g.

-----------------------------------------------------------------------------------

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Could not load type ''.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.Web.HttpException: Could not load type ''. ---> System.ArgumentException: String cannot have zero length. at System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) --- End of inner exception stack trace --- at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at DotNetNuke.Framework.Reflection.CreateType(String TypeName, String CacheKey, Boolean UseCache, Boolean IgnoreErrors)
Source:
Server Name: MS001

--------------------------------------------------------------------------------------------------------------

I am now trying to get back to PageBlaster default, but commenting out the Static File Handler in web.config causes errors on the page.


www.drivewaydesign.eu For A Dream Driveway
www.luzzucruises.com Make the most of Malta
www.a2zdom.com Domain name matters


John Mitchell
Posts:2755


04/12/2008 7:56 AM  

I'll turn off the wildcard mapping and see if that helps.

John Mitchell
Posts:2755


04/12/2008 8:33 AM  
Ok, it looks like it is working properly now.

One suggestion. I would put the login module on it's own page and then make a hard-coded link in the skin that goes to that page instead of using the skin object. The skin object does a post-back which clears the server-side pageblaster cache. Since it can be clicked on from every page it is un-necessarily clearing the cache.
eureka
<100 Posts
Posts:84


04/12/2008 11:39 AM  
Thanks John

Turning off the wildcard mapping seems to have done the trick - the Validation viewstate MAC error has gone. Phew!! what a relief.

I still can't get the DataSprings Flash ImageRotator to display - I commented out Static File Handler in web.config - I adding DataSprings to the excludes in Snapsis.PageBlaster.config (see below) but it didn't help.

pattern="(Login|jQuery|DesktopModules(?!/snapsis|/Xmod |/DataSprings)|LinkClick|\.ashx|SiteMap|/admin/|/host/|feed|rss|captcha|install|thumb|cart|\.asmx)"

www.drivewaydesign.eu For A Dream Driveway
www.luzzucruises.com Make the most of Malta
www.a2zdom.com Domain name matters


John Mitchell
Posts:2755


04/12/2008 12:26 PM  

That part of the pattern actually says "Exclude everything in DesktopModules unless it is DesktopModules/Snapsis or DesktopModules/Xmod"

So it should be excluded without adding DataSprings where you added it which really only excludeds it from the exclude, thereby including it again.

I'll take a look to see if I can find out what isn't working.

eureka
<100 Posts
Posts:84


04/12/2008 5:31 PM  
Hi John

Re: Missing DataSprings Flash image module

I think I have found the problem but I am not sure how to fix it.

Using YSlow and browsing > Components

All page elements are listed displaying the associated file extension at the end of the line – all except the line for one - DataSprings it displays [snip] instead

Doc: DataSprings_FlashImageRotator_388_026624e2_9252_4e90_a2d9_f1388643f18b.x[snip]

Expanding this line displays: XML Parsing Error: no element found.

Do you have any suggestions?

Thanks


www.drivewaydesign.eu For A Dream Driveway
www.luzzucruises.com Make the most of Malta
www.a2zdom.com Domain name matters


John Mitchell
Posts:2755


04/12/2008 6:39 PM  
Ok, it looks like there was a bad XML file located in cache from when the static file handler was on.

When I cleared the cache it started working.
eureka
<100 Posts
Posts:84


04/12/2008 7:50 PM  

Hi John,

I am relieved to say that I have got it working again, I just deleted the old module and just re-installed and put it back onto the page. I should have tried that firs, but it was always on the page - just that nothing was displayed. I thought that I had disabled the module with the settings that I had originally put in the config files, as it was previously working fine, I have tried countless combinations trying to "re-enable" it again.

Thanks John for all your help, much appreciated.

www.drivewaydesign.eu For A Dream Driveway
www.luzzucruises.com Make the most of Malta
www.a2zdom.com Domain name matters


Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >Bugs and other Issues > Validation of viewstate MAC failed



ActiveForums 3.7
Powered by: Snapsis Software