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

Error after install with Orchard Core

2 Answers 427 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lander
Top achievements
Rank 2
Lander asked on 13 May 2020, 09:03 AM

Hello support team,

We started a new application using Orchard Core.

We also installed version 2020.2.513 of Telerik UI for AspNet.Core.

Not sure if these can be used together?

Anyway I followed the first steps guide, https://docs.telerik.com/aspnet-core/getting-started/first-steps and added everything as mentioned.

But in the configureservices method of the startup filewe have 2 items:

services.AddOrchardCms();
services.AddKendo();

When I try to run the application, I get the following error:

InnerException {"Error while validating the service descriptor 'ServiceType: Kendo.Mvc.Rendering.IKendoHtmlGenerator Lifetime: Transient ImplementationType: Kendo.Mvc.Rendering.KendoHtmlGenerator': Unable to resolve service for type 'Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider' while attempting to activate 'Kendo.Mvc.Rendering.KendoHtmlGenerator'."} System.Exception {System.InvalidOperationException}

Maybe this is due to the combination of orchard core and telerik? Or maybe I'm missing something.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Lander
Top achievements
Rank 2
answered on 13 May 2020, 10:57 AM

So I've been playing around and created a new project / module in our solution and added it to be used in ochard. Adding kendo from there in the startup does not give the same error and I'm able to show kendo controls on a view.

 

Coopbase
Top achievements
Rank 2
Iron
Iron
commented on 28 Jul 2023, 07:10 AM

I followed the tutorial https://docs.telerik.com/aspnet-core/getting-started/first-steps

How did you exactly played it around? You created a new project solution and added the orchard into it? or you created an orchard core and added the Kendo into orchard.

Stoyan
Telerik team
commented on 01 Aug 2023, 11:29 AM

Hi,

I went through the guide in the First Steps article and was able to produce a project and also include Orchard in it.

Please checkout the attached project and possibly modify it to exhibit the behavior observed on your side.

This will enable us to investigate what causes the experienced issues.

Regards,
Stoyan

Coopbase
Top achievements
Rank 2
Iron
Iron
commented on 03 Aug 2023, 07:54 AM

Hi, I tried your example above but unfortunately there's an error that I encountered when i tried navigate to localhost/admin
Stoyan
Telerik team
commented on 03 Aug 2023, 01:51 PM

Hello,

Following your last message I have dived deeper into the investigation of the topic.

Here are my findings:

Additionally, I researched the OrchardCore product further and noticed that it is an in depth software tool with extensive documentation and resources.

Currently, Telerik UI is able to run simultaneously with the AddOrcharcCms service.

builder.Services.AddOrchardCms();
builder.Services.AddKendo();

The evidence suggests that the products are compatible. We aren't aware of  any incompatibilities between OrchardCore and Telerik UI for ASP .NET Core. In general such incompatibilities might occur, if there are mutually exclusive internal dependencies.
Having said that I would recommend you to contact OrchardCore support on how to include the product into a custom sample project.

Alternatively, our Professional Services could be very helpful in regard to topics that run outside of the scope of the Telerik UI products.

Sincerely,
Stoyan.

0
Misho
Telerik team
answered on 15 May 2020, 01:51 PM

Hi Koen,

Thank you very much for writing back with your findings. I'm glad that you managed to resolve the issue on your side and implement the desired behavior. In case you have other questions related to Kendo UI components, please do not hesitate to contact us. 

Best Regards,
Misho
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.
Tags
General Discussions
Asked by
Lander
Top achievements
Rank 2
Answers by
Lander
Top achievements
Rank 2
Misho
Telerik team
Share this question
or