So, I keep getting the 500 - Internal server error page on my .net site when I set the maxJsonLength in my web.config.
I\'m modifying the .config because even though
As none of above worked for me so I used this-
JsonResult result = Json(, JsonRequestBehavior.AllowGet); result.MaxJsonLength = int.MaxValue; return result;