Hi,
When we track a long email ( like 10 replies in that email) in CRM 2013 on premises . The Activities in Social Pane will cause an error.
Error: System.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 Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareJsonSerializedGridData(StringBuilder sbData)
at Microsoft.Crm.Application.WebServices.AppGridWebServiceHandler.Refresh(String gridXml, StringBuilder sbXml, StringBuilder sbHtml, Boolean returnJsonData)
at Microsoft.Crm.Application.WebServices.AppGridWebServiceHandler.ProcessRequestInternal(HttpContext context)
When I delete those long emails, It works fine again. But I want to increase the MaxJsonlength to avoid this errors but It didnt work. I tried to go to web.config and increased maxJosnLength to 2gb but it's still getting errors. The default is 1gb.
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483647" />
<!-- 2GB limit -->
</webServices>
</scripting>
</system.web.extensions>
Do I need to go anywhere else to change to make it happen ? I am appreciated all the comments.
Thank you very much,