【发布时间】:2011-06-21 10:59:18
【问题描述】:
我在 IIS6 上有两台服务器,其中负载平衡由负载平衡硬件完成。当Server 1 提供响应并且回发 由Server 2 处理时,它总是会收到一个错误The state information is invalid for this page and might be corrupted 并在Invalid viewstate 下方几乎 每当请求由备用服务器处理时回发。 如果我关闭其中一台服务器,那么它似乎工作正常。
我已经检查了decryptionKey 和validationKey 在两个服务器部署上都完全相同 相同,还有enableEventValidation="false" 和enableViewStateMac="false"。谷歌提供的各种可用解决方案都没有运气:P
请检查下面的堆栈跟踪,其中exception 出现在HiddenFieldPageStatePersister.Load() 后跟Page.LoadPageStateFromPersistenceMedium()。
[ViewStateException: Invalid viewstate.
Client IP: 192.168.5.21
Port: 60042
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
ViewState: {VIEWSTATE DATA}
[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +118
System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +13
System.Web.UI.HiddenFieldPageStatePersister.Load() +222
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +107
System.Web.UI.Page.LoadAllState() +43
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6230
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +247
System.Web.UI.Page.ProcessRequest() +79
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +23
System.Web.UI.Page.ProcessRequest(HttpContext context) +111
OrderJourneyDefault.ProcessRequest(HttpContext context) in C:\inetpub\wwwroot\x\Default.aspx.cs:350
ASP.toj_application_orderjourney_default_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\82a64fa9\62e4fa0\App_Web_31vcm2al.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +406
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76
注意:没有任何与 AJAX/Javascript 相关的东西可以搞乱我的应用程序。
提前致谢。
穆尼姆
【问题讨论】:
标签: asp.net iis deployment iis-6