“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------无法验证数据。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.HttpException: 无法验证数据。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  堆栈跟踪: 
[HttpException (0x80004005): 无法验证数据。]
   System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +196
   System.Web.UI.LosFormatter.Deserialize(String input) +60[HttpException (0x80004005): Authentication of viewstate failed.  1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm.  AutoGenerate cannot be used in a cluster.  2) Viewstate can only be posted back to the same page.  3) The viewstate for this page might be corrupted.]
   System.Web.UI.LosFormatter.Deserialize(String input) +118
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +102[HttpException (0x80004005): Invalid_Viewstate
Client IP: 60.190.86.98
Port: 2806
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
ViewState: (太长了,去掉了大部分)iBib3JkZXI9MFw+DQpcPFRCT0RZXD4NClw8VFJcPg0KXDxURCBjbGFzcz16aWJhaWN1IGJnQ29sb3I9IzFlM2M1Zlw+Jm5ic3BcO+WGhee9keWuieWFqO+8mlw8L1REXD5cPC9UUlw+DQpcPFRSXD4NClw8VEQgYWxpZ249bGVmdFw+==
Http-Referer: http://www.chiny.com.cn/ProdInfo.aspx?type=shangwu
Path: /ProdInfo.aspx.]
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +448
   System.Web.UI.Page.LoadPageViewState() +18
   System.Web.UI.Page.ProcessRequestMain() +447看提示信息可能是ViewState的问题,可是这个页面我根本没有使用ViewState;
打开页面 三五分钟后再点击页面的其他LinkBarton按钮导航到其他页面就会出现这个异常,
知道的能指点一下吗?

解决方案 »

  1.   

    是不是.NET版本的问题,你的程序是用2。0写的吗
      

  2.   

    没有啊,我用的是1.1的====CSDN 小助手 V2.5 2005年11月05日发布====
    CSDN小助手是一款脱离浏览器也可以访问Csdn论坛的软件
    界面:http://blog.csdn.net/Qqwwee_Com/archive/2005/11/05/523395.aspx
    下载:http://szlawbook.com/csdnv2
      

  3.   

    “If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm.  AutoGenerate cannot be used in a cluster.”“如果这是一个群集,编辑<machineKey>配置以设置所有的服务器都用同一个验证码和验证算法。自动生成方式无法用于群集。”因为ViewState是用machineKey加密的,然后返回时会验证ViewState是否被纂改过,这就要求machineKey保持不变。一般情况下,machineKey是在.NET Framework安装时一次性随机生成的,所以是应该不变的,但你面对的情况可能就是machineKey变了。这可能有两种原因,第一就是服务商确实用群集的方式为你的网站提供服务,也就是两次请求的相应分别是由两台服务器处理,而它们的machineKey不同;第二就是服务上基于某些原因让machineKey在动态改变。最简单的解决方案,不要设置ViewState验证,这时候就和machineKey没有任何关系了。
      

  4.   

    该怎么样关闭ViewState验证呢?