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

Grid DataSource - 500 Error

3 Answers 1760 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jesse
Top achievements
Rank 1
Jesse asked on 28 Jun 2017, 09:50 PM

Hi, I had my grid working great with a version of Kendo maybe 2 months old as of today.  I just updated the Telerik/Kendo control to the 2017.2.621 build and now when I try to do any of the CRUD operations in the grid, including reading data:

.Read(read => read.Action("EditingInline_Read", "PdfContents"))

I get a 500 error when viewing the developers tools in Chrome:

POST http://localhost:63508/PdfContents/EditingInline_Read 500 (Internal Server Error).

The grid handles this silently (gracefully) but nothing happens.  If I didnt look in the developer tools in Chrome, I wouldn't know what is happening.

I can't seem to figure out what the issue is.  I did not change any code whatsoever.  I just updated Kendo UI for ASP.NET MVC

3 Answers, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 30 Jun 2017, 11:38 AM
Hi Jesse,

The 500 error is generic, based only on it, I am not sure what might be the cause for this faulty behavior.

A possible cause might be the fact that the Kendo scripts are not included in the correct order. For more information, I would suggest checking this forum post:
Further, a possible workaround might be reverting the project to the last stable version. After that, use the update wizard to get the latest version:

Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Jesse
Top achievements
Rank 1
answered on 03 Jul 2017, 03:15 PM

Turns out what got it working was to add the Route attribute to the controller method like so:

[Route("EditingInline_Update")]
public ActionResult EditingInline_Update([DataSourceRequest] DataSourceRequest request, IndexPageViewModel vm)

 

Without the Route attribute it was throwing the 500.  I never needed the attribute in the past, but since upgrading Kendo, it is forcing me to do this.

0
Preslav
Telerik team
answered on 05 Jul 2017, 11:35 AM
Hello Jesse,

Based on the gathered information, we are not able to determinate the origin for this faulty behavior.

Thank you for sharing the resolution with the community.


Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Jesse
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Jesse
Top achievements
Rank 1
Share this question
or