今天在帮朋友解决错误:
System.Web.HttpException: Authentication of viewstate failed.
1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
2) Viewstate can only be posted back to the same page.
3) The viewstate for this page might be corrupted. ---> System.Web.HttpException: 无法验证数据
google出来的转过来参考下
[转自百度舞月光]
<machineKey validation="SHA1" validationKey="F3690E7A3143C185A6A8B4D81FD55DD7A69EEAA3B32A6AE813ECEEC" />
Inherits="MyAssembly.MyPage" enableViewStateMac="False" %>
<pages enableViewStateMac="false" />
</system.web>
建议: