Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Error opening a Page in 8.7.9

I'm having a problem with a particular page which fails to open in production.

It shows the following error:

Component: view1
Controller: TrainingAdminEmailInbox; View: ActionGrid; Timed out: false; Status Code: 500;
Exception: System.InvalidOperationException
Message: 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 System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat)
at System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams)
at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)

And on the console, I get this:
Failed to load resource: the server responded with a status of 500 ()

Any clues?

Many thanks.
2 people have
this question
  • This problem can be solved by adding the underneath to your web.config.
    You can automate it by adding into your COT project designer settings under the Client & Server section so that you don't have to manually edit the web.config after publishing.

    Delete: /configuration/system.web.extensions/scripting/webServices/jsonSerialization

    AppendChild: /configuration/system.web.extensions/scripting/webServices
  • (some HTML allowed)
    How does this make you feel?
    Add Image

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited