The attached image shows the error for a aspnetcore 2.0 project targeting 461 trying to do server side filtering on a grid, you will get a 500.
public ActionResult CustomerRead([DataSourceRequest] DataSourceRequest request)
{
}
Anyone else running into this issue?
17 Answers, 1 is accepted
If I view the DataSourceRequestAttribute and then view the ModelBinderAttribute is looks like it is referencing mvc 1.0 for some reason..
#region Assembly Kendo.Mvc, Version=2017.2.823.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4
// C:\Users\Travis\.nuget\packages\telerik.ui.for.aspnet.core\2017.2.823\lib\net451\Kendo.Mvc.dll
#endregion
using Microsoft.AspNetCore.Mvc;
namespace Kendo.Mvc.UI
{
public class DataSourceRequestAttribute : ModelBinderAttribute
{
public DataSourceRequestAttribute();
}
}
#region Assembly Microsoft.AspNetCore.Mvc.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// C:\Users\Travis\.nuget\packages\microsoft.aspnetcore.mvc.core\1.0.0\lib\net451\Microsoft.AspNetCore.Mvc.Core.dll
#endregion
using System;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace Microsoft.AspNetCore.Mvc
{
//
// Summary:
// An attribute that can specify a model name or type of Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
// to use for binding.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class ModelBinderAttribute : Attribute, IModelNameProvider, IBinderTypeProviderMetadata, IBindingSourceMetadata
{
public ModelBinderAttribute();
//
public Type BinderType { get; set; }
//
public virtual BindingSource BindingSource { get; protected set; }
//
public string Name { get; set; }
}
}
This problem is logged with high importance in our backlog and we will do our best to fix it as soon as possible. Once a fix for this error is provided a new internal build will be uploaded.
Below is the git issue from where you can follow its status:
https://github.com/telerik/kendo-ui-core/issues/3546
Please excuse us for the inconvenience caused by this bug.
Regards,
Pavlina
Progress Telerik
This is to let you know that this bug has been resolved in the latest internal build - 2017.2.901. You can download it from your account and see if everything works properly or you still encounter any problems.
Regards,
Pavlina
Progress Telerik
Hello, tested with 2017.2.901 and still same error:
System.TypeLoadException: Could not load type 'Microsoft.AspNetCore.Mvc.Internal
.TaskCache' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.0.0.0, Cultu
re=neutral, PublicKeyToken=adb9793829ddae60'.
at Kendo.Mvc.UI.DataSourceRequestModelBinder.BindModelAsync(ModelBindingConte
xt bindingContext)
at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinder.<BindM
odelAsync>d__2.MoveNext()
Plase fix it fast, it is a Critical bug...
see also:
https://github.com/telerik/kendo-ui-core/issues/3546
After further testing we found that the fix was actually not included in the 2017.2.901 internal release by a mistake in our build infrastructure.
We have already started the procedure for publishing a new internal build which is supposed to be available by the end of the day.
Please accept our sincere apologies for the inconvenience caused
Regards,
Pavlina
Progress Telerik
We are experiencing difficulties in releasing the internal build due to technical issues in the build environment.
You could find the fix in the nuget attached to this post for the time being.
Best Regards,
Misho
Progress Telerik
Yes, the fix is available in the R3 2017 release:
https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-r3-2017
Regards,
Bozhidar
Progress Telerik
Hey Misho, will you guys be updating the nuget package as well?
https://www.nuget.org/packages/Kendo.Mvc/2016.2.630-Preview
The nugets that we release for MVC and MVC Core were moved to the private feed, and you can find how to get them here:
https://docs.telerik.com/aspnet-mvc/getting-started/nuget-install
Regards,
Bozhidar
Progress Telerik
If you download the nuget package from R3 2017 release or from the latest version that we uploaded you should not encounter any issues with .Net Core 2.0.
Regards,
Pavlina
Progress Telerik
You can download the trial from your account page. If you have any issues, please open a separate ticket/forum, where the issue can be discussed, since this thread covers an unrelated issue.
Regards,
Bozhidar
Progress Telerik