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

18 posts, 0 answers
  1. Travis
    Travis avatar
    14 posts
    Member since:
    Jan 2013

    Posted 29 Aug 2017 Link to this post

    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?

  2. Travis
    Travis avatar
    14 posts
    Member since:
    Jan 2013

    Posted 29 Aug 2017 Link to this post

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

     

  3. genji
    genji avatar
    9 posts
    Member since:
    Aug 2016

    Posted 30 Aug 2017 in reply to Travis Link to this post

    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.
  4. Travis
    Travis avatar
    14 posts
    Member since:
    Jan 2013

    Posted 30 Aug 2017 Link to this post

    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.
  5. Travis
    Travis avatar
    14 posts
    Member since:
    Jan 2013

    Posted 30 Aug 2017 Link to this post

    The issue is specifically when targeting net461, it will work if the web project targets netcoreapp2.0, but that is not what I need.
  6. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 31 Aug 2017 Link to this post

    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.
  7. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 04 Sep 2017 Link to this post

    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.
  8. Petr
    Petr avatar
    1 posts
    Member since:
    Mar 2017

    Posted 05 Sep 2017 Link to this post

    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

  9. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 05 Sep 2017 Link to this post

    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.
  10. Misho
    Admin
    Misho avatar
    230 posts

    Posted 06 Sep 2017 Link to this post

    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.
  11. genji
    genji avatar
    9 posts
    Member since:
    Aug 2016

    Posted 14 Nov 2017 in reply to Misho Link to this post

    So is the fix finally released yet?
  12. Bozhidar
    Admin
    Bozhidar avatar
    1192 posts

    Posted 14 Nov 2017 Link to this post

    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.
  13. Sero
    Sero avatar
    1 posts
    Member since:
    Jul 2015

    Posted 15 Nov 2017 in reply to Bozhidar Link to this post

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

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

  14. Bozhidar
    Admin
    Bozhidar avatar
    1192 posts

    Posted 16 Nov 2017 Link to this post

    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.
  15. genji
    genji avatar
    9 posts
    Member since:
    Aug 2016

    Posted 18 Nov 2017 in reply to Bozhidar Link to this post

    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.
  16. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 22 Nov 2017 Link to this post

    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.
  17. Skalevoi
    Skalevoi avatar
    1 posts
    Member since:
    Dec 2017

    Posted 14 Dec 2017 in reply to Misho Link to this post

    Where can I download Telerik.UI.for.AspNet.Core.Trial version 2017.3.913 ?
  18. Bozhidar
    Admin
    Bozhidar avatar
    1192 posts

    Posted 15 Dec 2017 Link to this post

    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.
Back to Top