Asp.Net UpdatePanel error

不羁的心 提交于 2020-01-05 05:35:50

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/16100143/asp-net-updatepanel-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!