Server
Error in '/' Application.
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.
Description: An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.
Exception Details: System.Web.HttpException: 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.
Quite a nasty looking one but with a very simple fix - just need to add the following to your web.config file in the system.web section:
<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false"/>
No comments:
Post a Comment
Note: only a member of this blog may post a comment.