Welcome Guest Search | Active Topics | Log In | Register

Validation of viewstate MAC failed error Options · View
bigtoga
#1 Posted : Tuesday, October 17, 2006 8:23:41 PM

Rank: YAF MVP



Joined: 3/10/2006
Posts: 330
Location: Dallas, TX
Quote:
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
The querystring was "Search"

Has anyone seen this? I'm not on a cluster or farm. THis happened today on http://forums.learnwindows2003.com/ but I've since tried the Search and it worked fine. I'm trying to figure out if it was caused by YAF or my web host.
Check out my implementation of YAF: http://Forums.LearnSqlServer.com/. You can also check out my SQL Server 2005 tutorials at http://www.LearnSqlServer.com/ and my C# tutorials at http://www.LearnCSharp.com/
Jaben
#2 Posted : Wednesday, October 18, 2006 8:49:46 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 3,050
Location: Honolulu, HI
It's usually because "web farm" number is greater then 1 on the application settings...

at least that when it did it for me.
"When you are grateful, fear disappears and abundance appears”."

bigtoga
#3 Posted : Monday, November 27, 2006 11:26:37 PM

Rank: YAF MVP



Joined: 3/10/2006
Posts: 330
Location: Dallas, TX
Where would I change/view that? I searched for "web farm" in the source and found no matches.
Check out my implementation of YAF: http://Forums.LearnSqlServer.com/. You can also check out my SQL Server 2005 tutorials at http://www.LearnSqlServer.com/ and my C# tutorials at http://www.LearnCSharp.com/
test2005
#4 Posted : Tuesday, November 28, 2006 2:42:26 AM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 927
Location: Italy
bigtoga wrote:
Where would I change/view that? I searched for "web farm" in the source and found no matches.


It's found on the properties of the application pool running your app (through IIS).
.....the man in black fled across the desert..........and the gunslinger followed.....

bigtoga
#5 Posted : Tuesday, February 20, 2007 4:21:43 PM

Rank: YAF MVP



Joined: 3/10/2006
Posts: 330
Location: Dallas, TX
So it's been four months and I'm plagued with this problem still. I've just *finally* gotten around to sending my host a request asking for clarity and I posted this URL to help them diagnose the issue with me. I'll let you know what they report back and we'll go from there. Thanks for the help, test2005!
Check out my implementation of YAF: http://Forums.LearnSqlServer.com/. You can also check out my SQL Server 2005 tutorials at http://www.LearnSqlServer.com/ and my C# tutorials at http://www.LearnCSharp.com/
Jaben
#6 Posted : Wednesday, February 21, 2007 2:02:30 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 3,050
Location: Honolulu, HI
Try adding this to the system.web section of the web.config file:

Code:

<machineKey validationKey="FDC9C9EF51EEA5A28F568E15C9ED4F1BA0632D0C" decryptionKey="48C6BA0179974166BACF21FCC41BBEAB3EF34BD35E1EA86A" decryption="3DES" validation="SHA1" />
"When you are grateful, fear disappears and abundance appears”."

bigtoga
#7 Posted : Friday, April 27, 2007 1:20:21 PM

Rank: YAF MVP



Joined: 3/10/2006
Posts: 330
Location: Dallas, TX
bigtoga wrote:
So it's been four months and I'm plagued with this problem still. I've just *finally* gotten around to sending my host a request asking for clarity and I posted this URL to help them diagnose the issue with me. I'll let you know what they report back and we'll go from there. Thanks for the help, test2005!
I got back from my host - nothing on their end. I dig a bunch of digging and I think I've found it: if you load the page and click "save" or "login" (or any button) too quickly, it throws this error. Essentially the page_load() event is complete but event validation has not occurred.

This is generally only a problem for spam attacks that are scripted so it's less likely that you would see it unless you were a target *and* you had a fast server. What I've done to since resolve it (I *think) is to disable the controls until Page_LoadComplete()...

Overriding the machine key is not really something I want to try right now but thanks for the idea Smile
Check out my implementation of YAF: http://Forums.LearnSqlServer.com/. You can also check out my SQL Server 2005 tutorials at http://www.LearnSqlServer.com/ and my C# tutorials at http://www.LearnCSharp.com/
Ederon
#8 Posted : Friday, April 27, 2007 3:30:27 PM

Rank: YAF Developer



Joined: 1/8/2007
Posts: 1,084
Location: Heart of Europe
bigtoga wrote:
This is generally only a problem for spam attacks that are scripted so it's less likely that you would see it unless you were a target *and* you had a fast server. What I've done to since resolve it (I *think) is to disable the controls until Page_LoadComplete()...

Have you tried this? I'm curious whether it helps.
Quote:
Overriding the machine key is not really something I want to try right now but thanks for the idea Smile

For me, solution proposed by Jaben reduced number of occasions with "MAC validation failed" error to nearly 0.
When I post FP:Ederon in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting.
bigtoga
#9 Posted : Friday, April 27, 2007 4:34:58 PM

Rank: YAF MVP



Joined: 3/10/2006
Posts: 330
Location: Dallas, TX
It's been working for me for a week so far and, before that, I would get 10+ a day...

As for Jaben's solution, I have 20+ websites that I run and I don't know which server they are running on so I'm scared to change something like that.
Check out my implementation of YAF: http://Forums.LearnSqlServer.com/. You can also check out my SQL Server 2005 tutorials at http://www.LearnSqlServer.com/ and my C# tutorials at http://www.LearnCSharp.com/
bigtoga
#10 Posted : Thursday, May 03, 2007 2:16:07 PM

Rank: YAF MVP



Joined: 3/10/2006
Posts: 330
Location: Dallas, TX
It's been two weeks and not one MAC error Smile Yay!
Check out my implementation of YAF: http://Forums.LearnSqlServer.com/. You can also check out my SQL Server 2005 tutorials at http://www.LearnSqlServer.com/ and my C# tutorials at http://www.LearnCSharp.com/
bigdog
#11 Posted : Sunday, November 02, 2008 12:53:29 PM

Rank: YAF Forumling


Joined: 9/17/2008
Posts: 7
Location: NY
Hi bigtoga,

It seems like I've been running into the same problem. I've tried Jaben's solution but it didn't work.

Can you give me more details on your solution.

Thanks
vash
#12 Posted : Sunday, December 07, 2008 6:36:24 AM

Rank: YAF Commander


Joined: 9/2/2008
Posts: 106
Location: Philippines
how can i disable the controls until Page_LoadComplete()? I am also encountering the same situation....
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.149 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET