Can I set an unlimited length for maxJsonLength in web.config?

后端 未结 29 3187
礼貌的吻别
礼貌的吻别 2020-11-21 06:43

I am using the autocomplete feature of jQuery. When I try to retrieve the list of more then 17000 records (each won\'t have more than 10 char length), it\'s exceeding the le

29条回答
  •  野的像风
    2020-11-21 07:37

    If you are getting this error from the MiniProfiler in MVC then you can increase the value by setting the property MiniProfiler.Settings.MaxJsonResponseSize to the desired value. By default, this tool seems to ignore the value set in config.

    MiniProfiler.Settings.MaxJsonResponseSize = 104857600;
    

    Courtesy mvc-mini-profiler.

提交回复
热议问题