I'm having problems with an AJAX call when the response exceeds 2 MB. Everything that has a 2 MB response works fine. When the response exceeds 2 MB, my "success" method is never called.
My application is ASP.NET MVC2. I am making a call using a jQuery AJAX call:
$.ajax({ type: "post", data: ajaxData, url: ajaxUrl, success: updateItems, cache: false });
In my controller, I use the Json () action result method:
public ActionResult GetItems(....) { ... return Json(packet); }
When I watch a call to Fiddler, it returns with an HTTP 500 response.
I tried to set maxJsonLength in the Web.config file as shown here , but that does not seem to make any difference.
Any suggestions on how to allow a response through 2 MB?
Thanks in advance,
Skip
source share