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

services.AddKendo();

2 Answers 2173 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
Mehmet
Top achievements
Rank 2
Mehmet asked on 06 Jul 2020, 07:26 AM

Hi Telerik,

When I use the "services.AddKendo();" command,the program gives the following message.

I have followed the instructions on your page, the situation has not changed.

I first tried it with version 2016.3.118, then I tried it with the latest promotional version, the message has not changed.

Best regards,

 

 

 

 

Mehmet Bingol

 

Exception Unhandled:

System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: 
Kendo.Mvc.Rendering.IKendoHtmlGenerator Lifetime: Transient ImplementationType: Kendo.Mvc.Rendering.KendoHtmlGenerator': 
Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=3.1.5.0, 

InvalidOperationException: Error while validating the service descriptor 'ServiceType: Kendo.Mvc.Rendering.IKendoHtmlGenerator Lifetime: 
Transient ImplementationType: Kendo.Mvc.Rendering.KendoHtmlGenerator': Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache' 
from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=3.1.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

 

 

2 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 09 Jul 2020, 06:18 AM

Hi Mehmet,

Below you will find a link to our Forum where such an issue has been discussed.

https://www.telerik.com/forums/services-addkendo()-issue#mXOTnJoYUUGjcw2y_JBcvw

As you could see in the Forum thread, such error should not appear if the latest Telerik UI for ASP.NET Core version is installed. To resolve the issue, I would suggest you to double-check if the latest version of Telerik UI for ASP.NET Core is installed. Then, you could follow the steps described in the Creating Application article linked below

- https://docs.telerik.com/aspnet-core/getting-started/first-steps#creating-the-application

Another possibility is to create a new project by using the Create New Project Wizard. if you have installed Telerik UI for ASP.NET Core from the .msi executable available in your Telerik Profile, you should have access to the Telerik Extensions and you will be able to use the Create New Project Wizard. Thus, all the needed steps will be set up automatically. 

- https://docs.telerik.com/aspnet-core/installation/vs-integration/new-project-wizard

I hope the provided information will help you to resolve the issue.

    Regards,
    Neli
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
    Samrat
    Top achievements
    Rank 1
    commented on 21 Dec 2023, 02:42 PM

    I have the latest version of the dll and I still get the error that says:


    TypeLoadException: Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

     

    InvalidOperationException: Error while validating the service descriptor 'ServiceType: Kendo.Mvc.Rendering.IKendoHtmlGenerator Lifetime: Transient ImplementationType: Kendo.Mvc.Rendering.KendoHtmlGenerator': Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

    Alexander
    Telerik team
    commented on 25 Dec 2023, 10:45 AM

    Hi Samrat,

    Would it be possible for you to share the relevant "Program.cs" or "Startup.cs" files in which the "services.AddKendo()" is invoked? This will help me get a better overall understanding of the current infrastructural setup you have employed for your ASP.NET Core application.

    0
    Mehmet
    Top achievements
    Rank 2
    answered on 09 Jul 2020, 07:18 AM

    Hi Neli,

     

    We skipped that detail in Telerik 2016 version, I tried in 2020 version, it works, thanks for the answer

    Tags
    Installer and VS Extensions
    Asked by
    Mehmet
    Top achievements
    Rank 2
    Answers by
    Neli
    Telerik team
    Mehmet
    Top achievements
    Rank 2
    Share this question
    or