This is a migrated thread and some comments may be shown as answers.

Ajax request fails for more than certain number of records

1 Answer 752 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Madzie
Top achievements
Rank 1
Madzie asked on 14 Jul 2014, 06:52 AM
Hello,
I am facing a strange issue with submitting data of a grid. Here is how the scenario looks like
There is a grid, with first column having check box to select a certain row. There's a button, on clicking takes all the selected rows and passes on to a MVC controller action - using Ajax Post.
This action, calls a server method that submits all these records to db server as a List<>
The issue is - this all works fine when 39 records are selected but throws up "Internal server error" when more than 39 records are selected.

Note: The number of columns are about 20, no paging in grid, the grid has only 3 columns editable out of 20 and each row is calculated to allow the edits.

Am I missing anything, which is causing Internal server error !!! Is there a problem with grid or my code somewhere....this issue with number of records seems strange.

1 Answer, 1 is accepted

Sort by
0
Madzie
Top achievements
Rank 1
answered on 14 Jul 2014, 06:06 PM
Okay, found the issue out - The json request was too large to be deserialized.
fixed it by mentioning this in config
<add key="aspnet:MaxJsonDeserializerMembers" value="150000"/>

Tags
Grid
Asked by
Madzie
Top achievements
Rank 1
Answers by
Madzie
Top achievements
Rank 1
Share this question
or