Asp.Net的UpdatePanel错误 [英] Asp.Net UpdatePanel error

查看:214
本文介绍了Asp.Net的UpdatePanel错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在aspx页面和DropDownList的使用的UpdatePanel与 onselectedindexchanged 方法。

在运行首次 onselectedindexchanged 方法工作。但是,更改所选它再次返回一个错误那样;


  

未捕获Sys.WebForms.PageRequestManagerServerErrorException:Sys.WebForms.PageRequestManagerServerErrorException:国家信息是这个页面无效,可能已损坏。


 < ASP:的ScriptManager ID =ScriptManager1=服务器的EnableViewState =假EnableScriptGlobalization =真>
< / ASP:ScriptManager的><%@页标题=LANGUAGE =C#AutoEventWireup =真
EnableEventValidation =false的...%GT;

未:我有部分呈现,所以我不能的EnablePartialRendering =假添加到的ScriptManager

我怎样才能解决这个问题?


解决方案

根据@Aristos'注释以上,以我的 Telerik的解决方案,我不得不暂时删除 Telerik的:RadAjaxManager 来查看潜在的错误。这类似于暂时删除的UpdatePanel

在我的情况下,错误是: TypeLoadException:未能加载类型'System.Data.Entity.DynamicProxies.RepricingApproval_40D472CCAE59DB7A70B40FC6B029B430955A5ED87A7670652AA5B4D9D96A9A38'从程序集EntityFrameworkDynamicProxies-数据,版本= 1.0.0.0,文化=中立,公钥=空'。]

(顺便说一句,对于上面的修复是集 EnableFlattening 为false)。

I use UpdatePanel in my aspx page and DropDownList with onselectedindexchanged method.

When run first time onselectedindexchanged method is working. But change selected again it return an error like that;

Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: The state information is invalid for this page and might be corrupted.

 <asp:ScriptManager ID="ScriptManager1" runat="server" EnableViewState="False" EnableScriptGlobalization="true" >
</asp:ScriptManager>

<%@ Page Title="" Language="C#" AutoEventWireup="true" 
EnableEventValidation="false" ...  %>

Not : I have to Partial Rendering so i cant add EnablePartialRendering="false" to ScriptManager.

How can i solve this problem?

解决方案

As per @Aristos' comment above, with my Telerik solution, I had to temporarily remove the telerik:RadAjaxManager to see the underlying error. This is similar to temporarily removing the UpdatePanel.

In my case, the error was: TypeLoadException: Could not load type 'System.Data.Entity.DynamicProxies.RepricingApproval_40D472CCAE59DB7A70B40FC6B029B430955A5ED87A7670652AA5B4D9D96A9A38' from assembly 'EntityFrameworkDynamicProxies-Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.]

(BTW, the fix for the above was to set EnableFlattening to false).

这篇关于Asp.Net的UpdatePanel错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆