Tuesday, April 14, 2009

Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted Problem

facing a new problem
Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted

I face this problem long time ago. My websites woriking well at my end in India office and on my client system also. But problem was that it was not working on some system (another office) and they told me that they face some problem (Site through errors) as i use custom error so the error will not display but site was not working. The error we got was
Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted

So i worked on that and got the answer (after googling). Just add it to your webconfig file: -
pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false" />

and problem resolved

No comments:

Post a Comment