无效状态问题 [英] Invalid State Problem

查看:78
本文介绍了无效状态问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在修改当前的ASP.NET网站.我对ASP.NET有点陌生,所以我只做很少的事情.我只添加了一个按钮和一个功能:

I am making modifications of a current ASP.NET site. I''m somewhat new to ASP.NET so I am only doing little things. I only added a button and a function:

<form>
  <asp:Button Text="OPEN TEST" runat="SERVER" OnClick="TEST_COMMAND" ID="BUTTEST" />
</form>


我做了TEST_COMMAND,但它想更改按钮的文本.
当我单击按钮时,出现以下错误:


I made the TEST_COMMAND but it suppose to change the button''s text.
When I click the button I get the following error:

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.


我一直在阅读有关该问题的信息,但实际上并没有解决方案.


I''ve been reading up on the problem but there isn''t really a solution.

推荐答案

发现该表单未发回给正确的页面.愚蠢的错误

这里没有提供足够的信息.
Found out that the form wasn''t posting back to the right page. Silly Error

Didn''t give enough information here.


这篇关于无效状态问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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