Error Validation of viewstate MAC failed

77 views
Skip to first unread message

zachariahyoung

unread,
Jan 8, 2010, 12:43:07 AM1/8/10
to Virtual ALT.NET
Anybody know why I'm getting this error on the recordings page?

Validation of viewstate MAC failed. If this application is hosted by a
Web Farm or cluster, ensure that <machineKey> configuration specifies
the same validationKey and validation algorithm. AutoGenerate cannot
be used in a cluster.

Most times I just ftp over the web.config and it fixes the issue.

Thanks

Zach

Michael D. Brown

unread,
Jan 8, 2010, 2:00:40 AM1/8/10
to virtua...@googlegroups.com
Are you on a cluster? Is there a reverse proxy between the IIS Server and
the web. Enabling the MAC is used as an extra security check (avoid
interception of a valid request and making malicious changes) if security
isn't an issue, you can just disable MAC.
http://www.dotneat.net/2008/12/13/ASPNETMVCValidationOfViewstateMACFailedErr
or.aspx

Michael D. Brown

unread,
Jan 8, 2010, 2:15:58 AM1/8/10
to virtua...@googlegroups.com
Even better than that configure ASP.NET to use server side view state
http://www.codeguru.com/vb/vbnet30/article.php/c13931/

--Mike

Zachariah Young

unread,
Jan 8, 2010, 9:15:42 AM1/8/10
to virtua...@googlegroups.com
Our code is running on discountasp.net.  Someone provided me this post last night http://community.discountasp.net/showthread.php?t=2719.
 
I appied that suggestion but still was having issue.

--
You received this message because you are subscribed to the Google Groups "Virtual ALT.NET" group.
To post to this group, send email to virtua...@googlegroups.com.
To unsubscribe from this group, send email to virtualaltne...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/virtualaltnet?hl=en.






--
Zachariah Young
President of NW Arkansas .Net User Group
Co-Founder of Virtual ALT.NET
INETA VUG Mentor
http://zachariahyoung.com
zpy...@gmail.com
(479) 966-9169

Lance Farquhar

unread,
Jan 8, 2010, 9:18:17 AM1/8/10
to virtua...@googlegroups.com
Because it is in Web Farm the key is different per machine. Add the key to the web config and you should be all set.

Reply all
Reply to author
Forward
0 new messages