上传服务器后 打开一些页面 偶尔会出现下面这个错误
Unable to validate data.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Unable to validate data.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
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: 124.156.116.217
Port: 3118
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
ViewState: =
Http-Referer: http://www.wanma-electron.com/index.aspx
Path: /search_results.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +448
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447在网上找了N久 就是找不到解决 方法 大家帮帮忙啊
网址是 www.wanma-electron.com
分不够到时另算~~
Unable to validate data.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Unable to validate data.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
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: 124.156.116.217
Port: 3118
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
ViewState: =
Http-Referer: http://www.wanma-electron.com/index.aspx
Path: /search_results.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +448
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447在网上找了N久 就是找不到解决 方法 大家帮帮忙啊
网址是 www.wanma-electron.com
分不够到时另算~~
解决方案 »
- (附代码,可直接Copy运行)WebBrowser的Navigate方法经常弹出IE,如何解决?
- webbrowser触发超链接的点击事件(这个超链接是用来做事件处理,不是用来导航的)
- 会用DevExpress 9.3.2“那个”DLL的进来
- 怎么得到正在编译应用程序的文件名?
- 高手来回答循环问题呀
- ====== 典型的违规问题 ======进者有分
- C#最简单套接字
- 求助:使用show()打开的数据返回问题
- 奇怪的DATAGRID回车,请问怎样才能让“ok!”出来呢?
- 我刚下载来的VS2003,为什么不用输入SN?它自已已经写好了SN了?
- 无聊,想做一个看球赛比分的客户端软件?
- 1个byte[4]最大可以存储的int值是多少?
http://coffeefrustrate.blogbus.com/logs/2006/09/3260843.html
http://coffeefrustrate.blogbus.com/logs/2006/09/3260843.html
这个没说什么解决方法
If you are receiving HttpExceptions in your ASP.NET applications on postbacks; saying, Unable to validate data, you may try setting enableViewStateMac to true. You can do so at page level or for entire site in web.config.多谢大家 结帖