RadTreeView: large file size of XML

2 posts, 0 answers
  1. Priya Ekbote
    Priya Ekbote avatar
    3 posts
    Member since:
    Jun 2009

    Posted 11 Feb 2011 Link to this post

    Hi Team,
    I’m getting below error due to large file size of XML (RadTreeView source XML appox 6MB).

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

    In order to solution provided on http://www.telerik.com/help/aspnet-ajax/troubleshooting-treeview-maximum-length-exceeded.html




                    <jsonSerialization maxJsonLength="999999999"/>


                <scriptResourceHandler enableCompression="true" enableCaching="true"/>



    I have applied above code in web.config But this does not work, 

    I am using client side RadTreeView.

    Please let me know the proper solution for the same.

  2. Veronica
    Veronica avatar
    1213 posts

    Posted 16 Feb 2011 Link to this post

    Hello Priya Ekbote,

    Basically the MaxJsonLength takes values of type Int32 which means that you can not set it to a value more than : 2147483647.

    Could you please send me a sample project so I can inspect it and help you?

    Thank you!

    Veronica Milcheva
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top