我做了一个查询系统,这个页面点击查询按钮以后跳转到另一页面,刚打开时没有问题,但是过十几分钟在点击查询按钮,就会出现下面的提示错误,请各位高手指导指导
无法验证数据。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.HttpException: 无法验证数据。 源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪:
[HttpException (0x80004005): 无法验证数据。]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195
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() +101 [HttpException (0x80004005): Invalid_Viewstate
Client IP: 222.85.73.225
Port: 2928
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
ViewState:
无法验证数据。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.HttpException: 无法验证数据。 源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪:
[HttpException (0x80004005): 无法验证数据。]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195
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() +101 [HttpException (0x80004005): Invalid_Viewstate
Client IP: 222.85.73.225
Port: 2928
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
ViewState:
解决方案 »
- 正则表达式·高手来啊
- 如何把一个asp.net全站生成真静态HTML网站
- SQL语句中的类型转换问题
- ff中div的border 不能显示出来,在ie下可以
- 写asp.net程序却被表格给困住了
- 求助:关于使用Paypal Payflow网关
- SQL2005和WIN2003的问题
- 高分求解,VS2005网站其他页面突然不能使用其他页面的命名空间
- 有关在asp.net中模式窗口怎样更新主窗体中gridview的数据并绑定
- 如何把Excel文件中的多张表导入到一个DataSet中?请大虾指教
- 紧急求助:在二级域名下登录时出现无法验证数据的错误?头晕,哪位大哥知道是啥原因?
- 如何在Datalist中的按钮触发自定义方法
页面和控件的viewsate 设为true试试。
http://community.csdn.net/Expert/topic/4896/4896700.xml?temp=.3688471