专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > DotNet Exception

System.Web.HttpException: Validation of viewstate MAC failed解决方法!

发布时间:2011-06-26 20:24:36 文章来源:www.iduyao.cn 采编人员:星星草

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.

------解决方法--------------------------------------------------------
提交的内容太多了,超过了web.config中定义的最大上传字节量。
------解决方法--------------------------------------------------------
在Web.config里边添加 <pages enableEventValidation= "false " viewStateEncryptionMode = "Never " />
 

 

    
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: