本文介绍了国家信息是这个页面无效,可能已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我浏览网页asp.net时,在Internet Explorer中,而在Firefox的Mozilla一切正常,我收到以下错误。
我曾尝试不同的方法,我相信是VIEWSTATE一个问题,因为到

Hi Guys I am receiving the following error when browsing my asp.net page in internet explorer while in firefox mozilla everything works fine.I have tried different approaches as I believe there is a problem with VIEWSTATE as to

 - <pages  enableViewStateMac="false" >
 - <pages enableViewState="false">
 - <pages viewStateEncryptionMode="Never">
 - <pages maxPageStateFieldLength="40">

但似乎没有任何工作。错误看起来像如下:

but nothing seems to work. The error looks like below:

Source Error:
    [No relevant source lines]

    Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\emportalermal\7c94fef4\cccf3353\App_Web_mtkk1qfn.6.cs    Line: 0

    Stack Trace:

    [FormatException: Invalid character in a Base-64 string.]
       System.Convert.FromBase64String(String s) +0
       System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +72
       System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
       System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
       System.Web.UI.HiddenFieldPageStatePersister.Load() +113

    [ViewStateException: Invalid viewstate.
        Client IP: 127.0.0.1
        Port:
        User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
        ViewState: /wEPDwUKLTk3MzIyNTg5OA9kFgJmD2QWBAIBD2QWAgIJDxYCHgRocmVmBSV+L3Byb19kcm9wbGluZV8xL3Byb19kcm9wbGluZV9pbmQuY3NzZAIDD2QWBgIDD2QWAmYPZBYGAgkPFgIeBWNsYXNzBQZhY3RpdmVkAgsPFgIfAQUGYWN0aXZlZAJBDxYCHwAFFi4uL2FsL2NvbnRhY3RQYWdlLmFzcHhkAgUPZBYKAgEPZBYYAgEPDxYCHghJbWFnZVVybAUnLi4vaW1hZ2VzL0NhdGVnb3J5SW1hZ2VzL3BhcmFwYWd1YXIuZ2lmZGQCAw8PFgQeBFRleHQFCFN0YW5kYXJkHgtOYXZpZ2F0ZVVybAUULi4vYWwvcGFnZS5hc3B4P2lkPTRkZAIFDw8WAh4HVmlzaWJsZWhkZAIHDw8WCB4IQ3NzQ2xhc3MFDmNsaWNrZWRTdWJNZW51HwMFDlN1cGVyIFJpbmlyaW5nHwQFFi4uL2FsL3BhZ2UuYXNweD9pZD05MDgeBF8hU0ICAmRkAgkPDxYCHwVoZGQCCw8PFgIfBWhkZAINDw8WAh8CBSguLi9pbWFnZXMvQ2F0ZWdvcnlJbWFnZXMvbWUga29udHJhdGUuZ2lmZGQCDw8PFgQfAwUETGlmZR8EBRUuLi9hbC9wYWdlLmFzcHg/aWQ9NTBkZAIRDw8WBB8DBQZMaWZlICsfBAUVLi4vYWwvcGFnZS5hc3B4P2lkPTk2ZGQCEw8PFgQfAwUHTGlmZSA2MB...]

    [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) +106
       System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +14
       System.Web.UI.HiddenFieldPageStatePersister.Load() +217
       System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
       System.Web.UI.Page.LoadAllState() +43
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
       System.Web.UI.Page.ProcessRequest() +80
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
       System.Web.UI.Page.ProcessRequest(HttpContext context) +49
       ASP.al_page_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\emportalermal\7c94fef4\cccf3353\App_Web_mtkk1qfn.6.cs:0
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

任何建议。请记住,错误在Internet Explorer中才出现。

Any suggestions. Remember that the error appear just in internet explorer

推荐答案

真的无法找到一种解决方法。所以我用取代Ajax选项卡的jQuery的标签,现在一切都运行完美在这两个浏览器。

Really couldn't find a workaround for this. So I substituted jquery tabs with ajax tabs and now everything works perfect in both browsers.

当然不是最好的解决办法,但工作之一:)

Not the best solution of course but working one :)

这篇关于国家信息是这个页面无效,可能已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 20:34
查看更多