From 562851b93eab82fca2465621e1974b8d8c189f55 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Mon, 27 May 2013 09:59:02 -0200 Subject: [PATCH] Possible fix for U4-2251 TreeDataService throws JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property --- src/Umbraco.Web/umbraco.presentation/umbraco/Trees/XmlTree.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/XmlTree.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/XmlTree.cs index 38eaca32c0..5d71a2f606 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/XmlTree.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/XmlTree.cs @@ -50,7 +50,7 @@ namespace umbraco.cms.presentation.Trees private void Init() { - m_JSSerializer = new JSONSerializer(); + m_JSSerializer = new JSONSerializer { MaxJsonLength = int.MaxValue }; switch (m_TreeType) {