Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
Async error with maxJSon length property
posted

Hello,

When using the whdg i get the next error when having it filled with much data. Can you help me fix the problem?

------------------------------------------------------------------------------

Async request failed
 

[InvalidOperationException]: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

   at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat)

   at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output)

   at Infragistics.Web.UI.Framework.CallbackObject.GetResponse(String viewState, String eventValidation, Object[] additionalScripts)

   at Infragistics.Web.UI.Framework.RunBot.RenderPageCallBack(HtmlTextWriter writer, Control control)

   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.Page.Render(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

[HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown.

   at System.Web.UI.Page.HandleError(Exception e)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest()

   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)

   at System.Web.UI.Page.ProcessRequest(HttpContext context)

   at ASP.action_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\daedc96b\c3d05c5f\App_Web_c0vxitgo.3.cs:line 0

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

------------------------------------------------------------------

I have just upgraded to the newest service release, so that won't be the problem. I also put an update in my web.config telling JSOn to have a length of 40000000, so that should not be the problem too. And the last thing i tried was add paging to the whdg, but that did not help either.

Any ideas would be very welcome.

 

this is my grid:

<ig:WebHierarchicalDataGrid ID="whdgAction" runat="server"
                        AutoGenerateBands="False" AutoGenerateColumns="False"
                        DataKeyFields="AccommodationId" DataMember="Accommodations" Height="600px"
                        Key="RootBand" oninit="whdgAction_InitializeGrid" Width="98%" CssClass="margin1pct">
                        <ClientEvents RowExpanded="rowExpanded" RowCollapsed="rowCollapsed"/>
                        <Bands>
                            <ig:Band AutoGenerateColumns="False" DataKeyFields="AccommodationId, PriceId"
                                DataMember="Packages" Key="ChildBand">
                                <Columns>
                                    <ig:TemplateDataField Key="checkField" Width="50px">
                                        <ItemTemplate>
                                            <div style="text-align: center;">
                                                <input type="checkbox" id="cCK<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "AccommodationId") %>"
                                                <%# (bool)DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "Selected") == true ? "checked=\"checked\"" : "" %>
                                                onclick="selectChild(this)"/>
                                            </div>
                                        </ItemTemplate>
                                    </ig:TemplateDataField>
                                </Columns>
                            </ig:Band>
                        </Bands>
                        <Columns>
                            <ig:TemplateDataField Key="checkField" Width="50px">
                                <%--<HeaderTemplate>
                                    <div style="text-align: center;">
                                        <input type="checkbox" id="ckHeader" onclick="selectHeader()" />
                                    </div>
                                </HeaderTemplate>--%>
                                <ItemTemplate>
                                    <div style="text-align: center;">
                                        <input type="checkbox" id="pCK<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "AccommodationId")%>"
                                        onclick="selectParent(this)" disabled="disabled"/>
                                    </div>
                                </ItemTemplate>
                            </ig:TemplateDataField>
                        </Columns>
                        <Behaviors>
                            <ig:Filtering EnableInheritance="True">
                            </ig:Filtering>
                            <ig:EditingCore EnableInheritance="True">
                                <Behaviors>
                                    <ig:CellEditing EnableInheritance="True">
                                    </ig:CellEditing>
                                </Behaviors>
                            </ig:EditingCore>
                            <ig:Paging Enabled="true" PageSize="20">
                            </ig:Paging>
                        </Behaviors>
                    </ig:WebHierarchicalDataGrid>

 

---------------------------------

 

regards,

     René

Parents Reply Children
No Data