简体   繁体   English

网站总是会出现以下错误无法加载viewstate

[英]Website always occur the following error Failed to load viewstate

Recently, I don't why our website always occur the following error,but before I never receive the same errors. 最近,我不解释为什么我们的网站总是会出现以下错误,但是在我从未收到相同错误之前。 The request IP is 91.201.66.76 , I don't know my hosting meet attack. 请求IP为91.201.66.76 ,我不知道我的托管会议攻击。

Error Message: Failed to load viewstate. 错误消息:无法加载viewstate。 The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. 加载视图状态的控制树必须与在上一个请求期间用于保存视图状态的控制树匹配。 For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. 例如,当动态添加控件时,在回发期间添加的控件必须与在初始请求期间添加的控件的类型和位置匹配。

Request URL: http://www.hicalc.com/SignUp.aspx

Request IP: 91.201.66.76    Language:     Logined User: Anonymous

Beijing Time: 3/17/2011 2:57:41 PM ( UTC+8 )     Web Server Local Time: 3/17/2011 12:57:41 AM

HttpUnhandledException: "Exception of type 'System.Web.HttpUnhandledException' was thrown."
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.signup_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

HttpException: "Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request."
   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
   at System.Web.UI.Page.LoadAllState()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Your post does not have a question in it. 您的帖子中没有问题。 I'm assuming, that you asking, "Why this error is happening?" 我假设您在问,“为什么会发生此错误?” The answer is that in order to load ViewState the control tree should match exactly the control tree before post back. 答案是,为了加载ViewState,控制树在回发之前应与控制树完全匹配。 And yours are not matching up. 和你不匹配。

If you can give some more info as to what kind of code you are using for generating your control tree on the page, we can pin point more closely why the generated trees do not match. 如果您可以在页面上提供有关用于生成控件树的代码类型的更多信息,我们可以更精确地指出为什么生成的树不匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM