Last post Jul 11, 2011 11:28 AM by hans_v
Jul 09, 2011 10:27 AM|GrandpaB|LINK
I created a very simple aspx web page; it contains a button, label and a hiddenfield. Clicking the button increments the value in the hiddenfield and the value is displayed in the label. What could be easier? Well, it does work, but if the page is left
open for some time and when the button is clicked I get a "Validation of viewstate MAC failed" error.
I Binged the error and found a solution. I added EnableViewStateMac
="false" to the initial directive on on the aspx page. I'm looking for some education; I've never run into this error before. The sources I found discuss Gridviews, how to fix the problem, and Web Farm and clusters, but I don't know what is causing
the error to be thrown, and what or who is MAC! My hosting provider plan is on a shared server. Does this translate to a Web Farm or cluster?
Jul 09, 2011 02:50 PM|princeG|LINK
Jul 10, 2011 06:24 AM|hans_v|LINK
Jul 10, 2011 08:31 PM|Topspy|LINK
You may also contact your hosting provider for further assistance since you hosted on their server.
Jul 11, 2011 10:35 AM|GrandpaB|LINK
Thanks for the links; I found the Pascual blog quite informative.
Jul 11, 2011 11:28 AM|hans_v|LINK
Thanks for the links; I found the Pascual blog quite informative
But it is just a work around. Why would you not want to encrypt the authentication cookie? Read the link in my previous reply for a better solution...