0

I am making a ajax post call which will pass the viewmodel as a parameter, but now I am getting below error.

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

I saw the suggestion to increase the length through web.config, but our team said no for that solution, is there any other solution?

this is my ajax post

 $.ajax({
                url: method, //getSvcUrl(method),
                type: "POST",
                data: jsonIn, // ko.toJSON(jsonIn),
                dataType: "json",
                contentType: "application/json",

is there any way to handle it for one particular post method?

ArunPratap
  • 4,816
  • 7
  • 25
  • 43
vinton
  • 49
  • 6

0 Answers0