System.Web.UI.ViewStateException:无效的视图状态 [英] System.Web.UI.ViewStateException: Invalid viewstate

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

问题描述

我在ASP.net和放大器开发的Web应用程序; C#。我还使用Telerik的ASP.NET AJAX的Web UI。应用程序将引发异常( System.Web.UI.ViewStateException:无效的视图状态)的生产服务器。它可以在测试服务器的罚款。而这个错误是随机抛出。

  System.Web.UI.ViewStateException:无效的视图状态。
客户端IP:X.X.X.X
端口:XXXXX
引用者:HTTP://webaddress/Page.aspx
路径:/Page.aspx
用户代理:Mozilla的/ 4.0(兼容; MSIE 8.0; Windows NT的6.1;三叉戟/ 4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;媒体中心PC 6.0; CMNTDF ; BRI / 1; InfoPath.3; BRI / 2; .NET4.0C)
ViewState的:/ wEPDwUILT ... [更多内容省略了这个问题]


解决方案

有原因的主机,为什么这可能会发生,常见的一个是工作进程回收/应用程序池回收IIS服务器上。

有一个在下面的文章,试图调试到底为什么它是与你存在的:

http://support.microsoft.com/kb/555353

更具体地确定错误看看确定,当您收到错误消息正是发生异常的链接如下部分:

http://support.microsoft.com/kb/829743

I have a web application developed in ASP.net & C#. I also use Telerik ASP.NET AJAX for web UI. Application throws an exception (System.Web.UI.ViewStateException: Invalid viewstate) in production server. It works fine in test server. And this error is thrown randomly.

System.Web.UI.ViewStateException: Invalid viewstate. 
Client IP: x.x.x.x
Port: xxxxx
Referer: http://webaddress/Page.aspx
Path: /Page.aspx
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; CMNTDF; BRI/1; InfoPath.3; BRI/2; .NET4.0C)
ViewState: /wEPDwUILT ... [further contents omitted for this question]

解决方案

There are a host of reasons why this could occur, a common one being worker process recycling/Application Pool Recycling on your IIS server.

Have a look at the below articles to try and debug why exactly it is occuring with you:

http://support.microsoft.com/kb/555353

More specifically to determine the error have a look at the "Determine exactly what exception occurs when you receive the error message" part in the below link:

http://support.microsoft.com/kb/829743

这篇关于System.Web.UI.ViewStateException:无效的视图状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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