78135

Asp.Net UpdatePanel error

Question:

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;

<blockquote>

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

</blockquote> <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?

Answer1:

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

Recommend

  • How to apply jquery datepicker to textbox in gridview in masterpage
  • asp.net ajax like reorder list
  • 'System.OutOfMemoryException' was thrown when Exporting Data in Excel from .NET code
  • Page methods not calling web service methods sometimes
  • Repeater Button CommandArgument is Empty String
  • how to create button click event in gridview RowDataBound c# asp.net
  • Call javascript code afer postback from an update panel
  • call js confirm from code behind
  • Asp.net updatepanel Listbox not refreshing layout
  • UpdatePanel does not prevent button from reload page
  • C# Response.Write pdf not working with Android Browser
  • Avoid exception in ToDate in Pig for individual rows
  • What are the first steps for tracking down a exception triggered in the mono asp.net libraries?
  • Validate textbox to accept only valid datetime value using DataAnnotations in mvc3
  • Toggle DIV state localstorage
  • Javascript onclick does not fire when developer tools are open
  • Create unique ids for a group
  • Dropdowns with 10 thousand possible values and sequence-important dropdowns vs. graceful degredation
  • Finding regular expressions for languages otherwise described
  • How to use compare validator to compare the data between two dropdownlists values?
  • How to change display text in item template based on eval in gridview?
  • ASP.NET MVC2 Error: No parameterless constructor defined for this object
  • How do i find all references to a user control
  • JSON Error when parsing “… has no method 'replace'”
  • ASP.NET RegularExpressionValidator, validate on a non-match?
  • C# List of Panels
  • How to return DataSet (xsd) in WCF
  • Custom validator control occupying space even though display set to dynamic
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • How to delete a row from a dynamic generate table using jquery?
  • json Serialization in asp
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • How to stop GridView from loading again when I press back button?
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • UserPrincipal.Current returns apppool on IIS
  • java string with new operator and a literal