日期:2014-05-18  浏览次数:20488 次

页面停留时间过长或网速过慢,导至无法验证数据.请大家帮偶看看!(分不够在加)

下面这个是出错信息
无法验证数据。  
说明:   执行当前   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:   222.221.174.90
Port:   56664  
---------------------


------解决方案--------------------
执行了那些操作,是否死循环了
------解决方案--------------------
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.]


1 是不是因为集群
2 是不是没有post给本页
3 viewstate 中断

可能是网络问题引发第三种情况。
感觉没有办法避免。加个异常处理。跳过去。


------解决方案--------------------
<%@ Page Language= "C# " AutoEventWireup= "true " EnableEventValidation= "false "

页面加上 EnableEventValidation= "false " 这个试试
------解决方案--------------------
并发访问??
------解决方案--------------------
不懂,没遇到过,不过帮你顶一下帖,等高人回答