Perhaps you already read these pages, but anyway. http://blogs.msdn.com/b/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx http://www.eukhost.com/forums/f15/fix-validation-viewstate-mac-failed-6085/ On Thu, Nov 18, 2010 at 4:21 PM, sameer manohtra <sameermanohtra@xxxxxxxxx>wrote: > Hi guys, > I’ve trapped into a problem yet again: > I’m developing a website using asp.net and I have encountered a > problem where i’d like to know from you guys. > > I have developed a page where there’s a gridview control that’s > showing data from the database, and a textbox and button that > stores the value in the database. > Its all working fine on my computer (LOCALHOST), but on live server it > seemed to have messed up. > > Simply, when I try to place a text in textbox and click button for add > (which should store the data into database), I get this strange error: > “Validation of viewstate MAC failed. If this application is hosted by > a Web Farm or > cluster, ensure that <machineKey> configuration specifies the same > validationKey”. > > > > from some googling I found that this can be fixed by placing following > in web.config: > enableViewStateMac="false" > viewStateEncryptionMode="Never" > enableEventValidation="false" > > > unfortunately, when I’ve added this to my web.config, the page did not > load and started giving runtime error. > > I have even tried to place the same code in .aspx file, result of > which too was similar (RunTime Error). > > Does someone have any solution? > > Please, share it, I’m in high > Need to do the same. > > Any response will be appreciated. > > Sameer! > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > -- Jacques Bosch