0

I am using MVC3 and I am trying to return a data set and display the results using jQuery (Easy Query).

This works for smaller data sets however with a large data set it is showing the error as : Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

I have tried to set maxJsonLength in web.config but the change has no effect.

Nico
  • 12,493
  • 5
  • 42
  • 62
Saritha.S.R
  • 800
  • 1
  • 6
  • 19
  • http://stackoverflow.com/questions/5692836/maxjsonlength-exception-in-asp-net-mvc-during-javascriptserializer – Mate Jan 21 '14 at 03:21
  • Where I need to add this?Can you explain – Saritha.S.R Jan 21 '14 at 03:23
  • Looking at the answer, it would appear that it needs to be added before you return a JSON result from the controller action. Voting to close as this is a duplicate issue From the question @Mate referenced. – Tommy Jan 21 '14 at 04:42

0 Answers0