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

DataSourceRequest Error - Could not load type Microsoft.aspnetcore.mvc.internal.taskcache

17 Answers 1113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 29 Aug 2017, 06:01 PM

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

Sort by
0
Travis
Top achievements
Rank 1
answered on 29 Aug 2017, 07:49 PM

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; }
    }
}

 

0
genji
Top achievements
Rank 1
answered on 30 Aug 2017, 08:04 AM
I am having the same issue. It seems maybe kendo mvc for asp.net core is not compatible with the latest .NET Core 2.0 release? Hopefully a fix soon.
0
Travis
Top achievements
Rank 1
answered on 30 Aug 2017, 12:18 PM
The latest internal release notes specifically state it was released for 2.0 comparability. Telerik,please provide a response and get this critical issue fixed.
0
Travis
Top achievements
Rank 1
answered on 30 Aug 2017, 02:45 PM
The issue is specifically when targeting net461, it will work if the web project targets netcoreapp2.0, but that is not what I need.
1
Pavlina
Telerik team
answered on 31 Aug 2017, 04:34 PM
Hi,

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
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.
1
Pavlina
Telerik team
answered on 04 Sep 2017, 03:58 PM
Hello,

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
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
Petr
Top achievements
Rank 1
answered on 05 Sep 2017, 11:20 AM

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

1
Pavlina
Telerik team
answered on 05 Sep 2017, 02:18 PM
Hello,

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
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
Misho
Telerik team
answered on 06 Sep 2017, 08:57 AM
Hello,

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
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
genji
Top achievements
Rank 1
answered on 14 Nov 2017, 11:09 AM
So is the fix finally released yet?
0
Bozhidar
Telerik team
answered on 14 Nov 2017, 02:23 PM
Hello,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Sero
Top achievements
Rank 1
answered on 15 Nov 2017, 04:49 PM

Hey Misho, will you guys be updating the nuget package as well?

https://www.nuget.org/packages/Kendo.Mvc/2016.2.630-Preview

0
Bozhidar
Telerik team
answered on 16 Nov 2017, 07:49 AM
Hello,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
genji
Top achievements
Rank 1
answered on 18 Nov 2017, 09:27 AM
What specific nuget package version is this fixed in? I have 2017.2.621 as the latest available on the private feed nuget but the issue still seems to be there.
0
Pavlina
Telerik team
answered on 22 Nov 2017, 05:18 PM
Hi,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Skalevoi
Top achievements
Rank 1
answered on 14 Dec 2017, 02:46 PM
Where can I download Telerik.UI.for.AspNet.Core.Trial version 2017.3.913 ?
0
Bozhidar
Telerik team
answered on 15 Dec 2017, 07:25 AM
Hi,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Travis
Top achievements
Rank 1
Answers by
Travis
Top achievements
Rank 1
genji
Top achievements
Rank 1
Pavlina
Telerik team
Petr
Top achievements
Rank 1
Misho
Telerik team
Bozhidar
Telerik team
Sero
Top achievements
Rank 1
Skalevoi
Top achievements
Rank 1
Share this question
or