Enableviewstatemac on homepage

I am getting "Failed to validate viewstate MAC address" and from what I heard you can add enableviewstatemac = false to every page or web.config so instead of changing to every page I can just change the wizard page so that I don't have to change on all pages.

0


source to share


1 answer


Message authentication is disabled by default, so someone had to enable it for some reason.

I'm not sure if you can set it on the master page - this is the page directive, but it might work on the master declaration. However, if you want to disable it for all pages on the site, then updating the web.config is a simplified option - then if you add a second master page later, you will have to remember to disable it there.

In web.config you can change the asp.page section:



<asp:Page EnableViewStateMac="False" />

      

And that will disable it for the entire site.

http://msdn.microsoft.com/en-us/library/system.web.ui.page.enableviewstatemac.aspx

+2


source







All Articles