R
russell.lane
I'm getting the much-hated "validation of viewstate MAC failed" error. This
is on an ASP.Net 2.0 app running in IIS with IE 6+ as the browser.
The full error text 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.
The app *is not* running in a cluster or web farm.
I put the following line in the web.config files for the relevant apps:
<pages validateRequest="false" enableEventValidation="false"
viewStateEncryptionMode ="Never" />
This helped, but did not completely solve, the problem. What I see now is
that, even with this fix in place, if a user leaves a browser session idle
for a while (more than 20 minutes?) the viewstate error will return.
Is this error related to something that is timing out (session lifetime,
security credential, etc)? What should I look for next?
This bug is very annoying to our end users.
Thanks!
Russell Lane
is on an ASP.Net 2.0 app running in IIS with IE 6+ as the browser.
The full error text 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.
The app *is not* running in a cluster or web farm.
I put the following line in the web.config files for the relevant apps:
<pages validateRequest="false" enableEventValidation="false"
viewStateEncryptionMode ="Never" />
This helped, but did not completely solve, the problem. What I see now is
that, even with this fix in place, if a user leaves a browser session idle
for a while (more than 20 minutes?) the viewstate error will return.
Is this error related to something that is timing out (session lifetime,
security credential, etc)? What should I look for next?
This bug is very annoying to our end users.
Thanks!
Russell Lane