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
300
Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
posted

I am using Infragistics v16.1 and have encountered an issue where i have a web data grid with 25 columns and 1000 blank rows. After copy/paste 1000 records from excel and click submit button getting below error: "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.".

I already set EnableAjax="false" and EnableAjaxViewState="false" and added _callbackManager.setTimeout(600000) in web data grid initialize function.

I already went through some of the posts regarding the same , but not able to find any solutions.

How to fix this issue.should I be able to find this in any documentation?

cheers

Rajesh

 

  • 0
    Offline posted

    Amazing Post! it is really knowledgeable and useful for me. Thanks for sharehttp://proactdigital.com

  • 5
    Offline posted
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at Infragistics.Win.UltraWinGrid.UltraGrid.SynchImeMode(Boolean restoreOnly)
    at Infragistics.Win.UltraWinGrid.UltraGrid.OnAfterExitEditMode()
    at Infragistics.Win.UltraWinGrid.UltraGrid.FireEvent(GridEventIds id, EventArgs e)
    at Infragistics.Win.UltraWinGrid.UltraGridLayout.OnEditorAfterExitEditMode(Object sender, EventArgs e)
    at Infragistics.Win.EmbeddableEditorBase.OnAfterExitEditMode()
    at Infragistics.Win.EmbeddableEditorBase.ExitEditMode(Boolean forceExit, Boolean applyChanges)
    at Infragistics.Win.UltraWinGrid.UltraGridCell.ExitEditMode(Boolean cancellingEditOperation, Boolean forceExit)
    at Infragistics.Win.UltraWinGrid.UltraGridCell.ExitEditMode()
    at Infragistics.Win.UltraWinGrid.UltraGrid.ClearActiveCell(Boolean invalidate, Boolean shutdown)
    at Infragistics.Win.UltraWinGrid.UltraGrid.set_ActiveCell(UltraGridCell value)
    at Infragistics.Win.UltraWinGrid.UltraGridRow.Activate()
    at Infragistics.Win.UltraWinGrid.UltraGridRow.SetFocusAndActivate(Boolean byMouse, Boolean enterEditMode, Boolean byTabKey)
    at Infragistics.Win.UltraWinGrid.UltraGridRow.SetFocusAndActivate()
    at Infragistics.Win.UltraWinGrid.UltraGrid.Infragistics.Win.ISelectionManager.ActivateItem(ISelectableItem item)
    at Infragistics.Win.SelectionStrategyExtended.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo, Boolean forceDrag)
    at Infragistics.Win.SelectionStrategyExtended.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo)
    at Infragistics.Win.SelectionStrategyExtended.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo)
    at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e)
    at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e)
    at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
    at Infragistics.Win.UltraWinGrid.UltraGrid.OnMouseDown(MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1080.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Microsoft.VisualStudio.HostingProcess.Utilities
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.23107.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.HostingProcess.Utilities/14.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.HostingProcess.Utilities.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    Microsoft.VisualStudio.HostingProcess.Utilities.Sync
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.23107.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.HostingProcess.Utilities.Sync/14.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll
    ----------------------------------------
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1081.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/Syst
  • 60
    Suggested Answer
    Offline posted

    Oh, great, your article gives me useful information and a fresh perspective on the subject.

    wings io

  • 10
    posted

    The serialization and de-serialization of returned objects might be the isssue. Check or validate your JSON here also:  JSON Formatter