2011-03-18 42 views
0

最近,我不是爲什麼我們的網站總是出現以下錯誤,但在我從未收到過相同的錯誤之前。 請求IP爲91.201.66.76,我不知道我的主機會遇到攻擊。網站總是出現以下錯誤無法加載視圖狀態

錯誤消息:無法加載視圖狀態。要將視圖狀態加載到其中的控制樹必須與前一個請求期間用於保存視圖狀態的控制樹相匹配。例如,當動態添加控件時,在回發期間添加的控件必須與初始請求期間添加的控件的類型和位置相匹配。

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) 
+0

良好的格式是你的朋友。 – 2011-03-18 06:43:34

回答

1

您的帖子中沒有問題。我假設你問,「爲什麼這個錯誤發生了?」答案是,爲了加載ViewState,控件樹應該在回發之前完全匹配控件樹。而你的不匹配。

如果您可以提供更多的信息來了解您在頁面上生成控件樹時使用的代碼類型,我們可以更密切地指出爲什麼生成的樹不匹配。

+0

謝謝!
我的問題是爲什麼總是出現錯誤,並且請求IP總是91.201.66.76,如果遇到攻擊我不知道我的網站。 – Paul 2011-03-18 07:23:18

+0

是的,通過向網站提交僞造數據可能導致此錯誤。這可能是來自這個IP地址的攻擊。 – 2011-03-18 07:30:53

+0

謝謝!但我怎麼知道這是僞造的數據? 順便說一句,如何使用mini-Markdown格式來製作換行符?
,

不起作用 –
                        
                            
    Paul
                                2011-03-18 07:40:58
                            
                        
                    

相關問題