日期:2014-05-20  浏览次数:20860 次

“/”应用程序中的服务器错误。求救啊!
前几天运行的还好好的,各项都好好的,昨天完蛋了,在网上找了一大推,都不行,所以求救

在web.config当中配置<pages viewStateEncryptionMode="Never" enableEventValidation="false">这个还是不行,还有就是什么form表单,两个什么的,我查看源码,里面根本没有

我一个index.aspx页面里面,包含了一个login.ascx的用户控件
C# code

index.aspx
.....
<body>
  
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
.......
    </form>
</body>

login.ascx

<asp:UpdatePanel ID="upLogin" runat="server">
<ContentTemplate>
.....内容
</ContentTemplate>
</asp:UpdatePanel>

</html>
前几个星期都好好的,就昨天一下就不行了,我使用了cookie





错误具体信息

C# code
此页的状态信息无效,可能已损坏。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.Web.HttpException: 此页的状态信息无效,可能已损坏。

源错误: 


[没有相关的源行]
 

源文件: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\133d1919\7aaca36f\App_Web_a8cw1qkx.1.cs    行: 0 


堆栈跟踪: 


[FormatException: Base-64 字符串中的无效字符。]
   System.Convert.FromBase64String(String s) +0
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +77
   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: 无效的视图状态。
    Client IP: 127.0.0.1
    Port: 
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .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) ...]

[HttpException (0x80004005): 此页的状态信息无效,可能已损坏。]
   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.page_index_index_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\caipiaojincai\774019e1\40f0ad25\App_Web_zhv2mznh.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 


--------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3620; ASP.NET 版本:2.0.50727.3618 



各位大侠,求救啊!

------解决方案--------------------
那你直接在Page.aspx和pages.aspx页面里面看看有没有form,把这个去掉,在试试,因为首页和你这个页面加载,可能存在两个form,所以会导致这样的错误!