I have a method when I debug it it return 300000 rows fine but after getting data in list i am return json object and when I am testing it on post man I am getting this error "error during serialization or deserialization using the json javascriptserializer,the length of the string exceeds the value set on the maxjsonlength property, I have done the web .config changes as well n
but still i am getting same error either it is mapping issue or length issue how to find
Vishal YelvePosted Sep 5, 2022, 5:32 AM
Abhishek ChadhaPosted Sep 4, 2022, 11:00 AM
public ActionResult/JsonResult getData()
{
var jsonResult = Json(superlargedata, JsonRequestBehavior.AllowGet);
jsonResult.MaxJsonLength = int.MaxValue;
return jsonResult;
}
Try to use this, no need to assign in web.config