|
|
 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/
|
|
|
 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”." 
|
|
|
 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/
|
|
|
 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.....
|
|
|
 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/
|
|
|
 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”." 
|
|
|
 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  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/
|
|
|
 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  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.
|
|
|
 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/
|
|
|
 Rank: YAF MVP

Joined: 3/10/2006 Posts: 330 Location: Dallas, TX
|
It's been two weeks and not one MAC error  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/
|
|
|
 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
|
|
|
 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
|
YAFPro Theme Created by Jaben Cargman (Tiny Gecko)Powered by YAF 1.9.3 RC2 |
YAF © 2003-2008, Yet Another Forum.NETThis page was generated in 0.149 seconds.