Asp.Net的UpdatePanel错误 [英] Asp.Net UpdatePanel error
问题描述
我在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 thetelerik:RadAjaxManager
to see the underlying error. This is similar to temporarily removing theUpdatePanel
.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屋!