【发布时间】:2021-01-24 14:27:11
【问题描述】:
我尝试在我的 Razor Pages 应用程序中使用 Kendo,我遵循了这个文档 https://docs.telerik.com/aspnet-core/getting-started/first-steps,但我有错误:
System.AggregateException:'某些服务无法构造(验证服务描述符时出错'ServiceType:Kendo.Mvc.Rendering.IKendoHtmlGenerator Lifetime:Transient ImplementationType:Kendo.Mvc.Rendering.KendoHtmlGenerator':无法加载从程序集“Microsoft.AspNetCore.Mvc.Core, Version=3.1.7.0, Culture=neutral, PublicKeyToken=adb9793829ddae60”中键入“Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache”。)'
我正在使用 Telerik.UI.for.AspNet.Core,版本 2019.1.220。
【问题讨论】:
-
这个错误听起来像是向DI容器注册了一个接口,但是在解析过程中,没有实现该接口的类。
-
您可能需要更新版本的 Kendo 才能支持 .NET Core 3.1。我相信直到 R3 2019 版本的剑道(比您使用的版本晚)之前,剑道才正式提供它telerik.com/support/whats-new/aspnet-core-ui/r3-2019
标签: kendo-ui telerik razor-pages