This is a migrated thread and some comments may be shown as answers.

RadTreeView: large file size of XML

1 Answer 77 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Priya Ekbote
Top achievements
Rank 1
Priya Ekbote asked on 11 Feb 2011, 07:29 AM

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

<system.web.extensions>

        <scripting>

            <webServices>

                <jsonSerialization maxJsonLength="999999999"/>

            </webServices>

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

        </scripting>

      </system.web.extensions>

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.

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 16 Feb 2011, 05:08 PM
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!

Regards,
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.
Tags
TreeView
Asked by
Priya Ekbote
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or