参数化实现登录,报错:
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.
有哪位碰到过这种问题?asp.net登录
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.
有哪位碰到过这种问题?asp.net登录
解决方法。
<pages validateRequest="false" enableSessionState="true" enableViewState="true"/> <pages validateRequest="false" />
改成
<pages validateRequest="false" enableSessionState="true" enableViewStateMac="false" enableViewState="true"/> <pages validateRequest="false" enableViewStateMac="false" />理论上是OK