System.Web.HttpUnhandledException: 发生类型为 System.Web.HttpUnhandledException 的异常。 ---> System.Web.HttpException: Invalid_Viewstate
Client IP: 218.18.207.209
Port: 64245
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
ViewState: 
(省略一堆ViewState)
Http-Referer: http://www.zippolight.com/orderForm.aspx
Path: /orderForm.aspx. ---> System.Web.HttpException: 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.HttpException: 无法验证数据。
   at System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
   at System.Web.UI.LosFormatter.Deserialize(String input)
   --- 内部异常堆栈跟踪的结尾 ---
   at System.Web.UI.LosFormatter.Deserialize(String input)
   at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
   --- 内部异常堆栈跟踪的结尾 ---
   at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
   at System.Web.UI.Page.LoadPageViewState()
   at System.Web.UI.Page.ProcessRequestMain()
   --- 内部异常堆栈跟踪的结尾 ---
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain()
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
详见日志(没时间写XSL文件,请下载后打开查看,谢谢:P):
http://www.zippolight.com/logs/2006-06-27.xml
...(中间自己加喔)
http://www.zippolight.com/logs/2006-07-21.xml急呀,大家帮帮忙,很急呀...是万网的空间.

解决方案 »

  1.   

    我仅仅是针对你这个问题回答:“您好,我看到你对这个帖子的回复,我也出现同样的问题,一样用的万网空间.请详细的解释一下"不要设置ViewState验证"是怎么一回事?怎么做?”默认情况下,ViewState是开启了验证的,而用于签名ViewState的密钥是由machine.config决定的。默认安装的话,machine.config中的密钥是随机生成的,所以不同机器的密钥肯定不同。如果多台机器组成Web Farm的话(万网应该就是这样做的),就必须将多台机器的密钥设置为一致,否则加密解密的时候就会出错,可是万网应该是忘记了这样做,所以导致你的网站出错了。禁用ViewState的话,你用MSDN查找一下关于ASP.NET的安全特性部分,应该就知道如何禁用了。