"视图状态MAC验证失败。如果该应用程序是由一个Web远...&QUOT托管; [英] "Validation of viewstate MAC failed. If this application is hosted by a Web Far..."

查看:149
本文介绍了"视图状态MAC验证失败。如果该应用程序是由一个Web远...&QUOT托管;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临可怕的:

视图状态MAC验证失败。如果此应用程序由Web场或群集承载,确保配置指定了相同的validationKey和验证算法。自动生成不能在集群中使用。

错误。

行,所以我寻找它,发现它可以由两件事情,VIEWSTATE不能由页面被验证引起的,并且不能被验证/或事件。

Ok so i looking it up and found that it can be caused by two things, viewState which can not be verified by the page, and/or events that can not be validated.

我把

<pages enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never">

在我的web.config停止的问题,但似乎很难像一个补丁给我。

In my web.config to stop the problem, but that hardly seems like a fix to me.

问题是,我从来没有使用过的ViewState在我的应用程序。我知道,asp.net使用ViewState的默认存放一些东西,但我怀疑这里存储的默认值会导致任何错误。

The thing is, i never even used viewState in my application. I know that asp.net uses viewstate by default to store some things, but i doubt the default values stored here will cause any errors.

我注意到,这个问题似乎当我回发发生,页面还没有完成加载呢。

I noticed that the problem seems to happen when i postBack and the page has not finished loading yet.

感谢

编辑:请,有人可以测试我的网站www.vittoriosaStarsNursery.com,看看你会得到我上面得到了错误?我不明白在本地,但人们一直告诉我,他们都得到了。

Please, can someone test my website www.vittoriosaStarsNursery.com and see if you get the error i got above? I dont get it locally but people keep telling me they are getting it.

推荐答案

这个心不是只是把一个班轮在你的web.config的情况下

Isnt this just a case of putting a one liner in your web.config

<machineKey decryptionKey="A4B12CCDD50E95F8GB9GFH6JKAT4Y0U0I2OF2DF2AAFE5AB46189C,IsolateApps" validation="AES" validationKey="480CDF2AS9S9AS5CFDGF0GHFH9JJH4KHKAKLJ2L9F3SAS82A6C16911A29EF48903783F94529C21570AACB72766FB38CD4CE7B85B0ACE3149DC5FC1CCF1AA1CECE3579659996593B06,IsolateApps"/>

这篇关于&QUOT;视图状态MAC验证失败。如果该应用程序是由一个Web远...&QUOT托管;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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