2008年3月20日 星期四

Validation of viewstate MAC failed

錯誤訊息:
Validation of viewstate MAC failed. If this application is hosted by a Web farm or cluster,
ensure that configuration specifies the same validationKey and validation algorithm.
AutoGenerate cannot be used in a cluster.

解決方法:加入以下這行在web.config

pages enableeventvalidation="false" viewstateencryptionmode ="Never"

沒有留言: