尝试刷新页面时有时会出错 [英] getting a error sometimes when trying to page refresh

查看:142
本文介绍了尝试刷新页面时有时会出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试刷新页面时遇到错误



viewstate MAC验证失败。如果此应用程序由Web场或群集托管,请确保< machineKey> configuration指定相同的validationKey和验证算法。 AutoGenerate不能在群集中使用。



描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。



异常详细信息:System.Web.HttpException:viewstate MAC验证失败。如果此应用程序由Web场或群集托管,请确保< machineKey> configuration指定相同的validationKey和验证算法。 AutoGenerate不能在群集中使用。



请告诉我原因是什么和解决方案是什么?

i am getting a error sometimes when trying to page refresh

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.

please tell me what is the reason & what is the solution?

推荐答案

<system.web>
<pages enableViewStateMac="false" />
</system.web>

Also tried the following on the page.

<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" />





或者你可以点这个链接



http://forums.asp.net/t/1485987.aspx?Validation+of+viewstate+MAC+failed [ ^ ]


这篇关于尝试刷新页面时有时会出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆