Validation of view state mac failed error?

Posted by Isha under ASP.NET on 12/17/2007 | Views : 1973 | Status : [Member] | Replies : 2
I have created my application in webfarm and i cannot resolve this error.I have tried all sort of things to solve this error,but cant get through.

Error is:
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.




Responses

Posted by: Harishankar on: 12/28/2007 [Member] Starter

Up
0
Down
MAC MACHINE APPLICATION


CHECK YOUR WEB.CONFIG AND MACHINE.CONFIG IF THERE IS ANY CHANGE THEN IT WILL NOT WORK.
THS
HARI

Isha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satish on: 1/3/2008 [Member] Starter

Up
0
Down
I got this kind of error when I am redirecting to a page from the clientside, for that I got fix, hope this would help you...

document.frmName.__VIEWSTATE.name = ''; [--]> is the fix

document.frmName.action="abc.aspx?qone=1
document.frmName.__VIEWSTATE.name = '';
document.frmName.submit();

Isha, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response