Długość łańcucha przekracza wartość ustawioną we właściwości maxJsonLength. w MVC3

MVC3 (plik .cshtml)

$.getJSON(URL, Data, function (data) {

                    document.getElementById('divDisplayMap').innerHTML = data;

                    if (data != null) {
                        $('#myTablesId').show();
                        tdOnclickEvent();

                    }
                    else {
                        $('#myTablesId').hide();
                    }
                }).error(function (xhr, ajaxOptions, thrownError) { debugger; });

po stronie serwera

 public JsonResult ZoneType_SelectedState(int x_Id, int y_Id)
    {
    JsonResult result = new JsonResult();
     result.Data = "LongString";//Longstring with the length mention below
    return Json(result.Data,"application/json", JsonRequestBehavior.AllowGet);
    }

od strony serwera przekazuję ciąg o długości 1194812 i więcej. ale pojawia się błąd mówiący

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

Pomóż mi z ASP

questionAnswers(2)

yourAnswerToTheQuestion