Kentico Xperience 13 - 迁移到 VS 17.5.2 和错误

问题描述 投票:0回答:0

我使用 Xperience 13 开发了一个网站,目标是 .Net6,它运行良好超过一年。 昨天,我将我的 Visual Studio 更新到 17.5.2,它还安装了 .Net 7 等。我在这个新更新的 VS 中打开了我的实时站点,重建了所有内容,我的应用程序不再适用于 IIS 或 IIS Express。我在 VS 中没有错误,只是我不能再运行它了。

我在浏览器中不断收到以下错误:

NullReferenceException: Object reference not set to an instance of an object.
CMS.Membership.Internal.VirtualContextAuthenticationConfiguration.get_Audience()

DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor()' on type 'VirtualContextRequestPrincipalRetriever'.
Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()

DependencyResolutionException: An exception was thrown while activating λ:Kentico.Web.Mvc.Internal.IRequestPrincipalRetriever[] -> Kentico.Content.Web.Mvc.VirtualContextRequestPrincipalRetriever.
Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action<ResolveRequestContext> next)

我尝试卸载 .Net 7,重新安装 VS 等...但是我的 Kentico 站点不再工作了。

任何帮助将不胜感激

kentico
© www.soinside.com 2019 - 2024. All rights reserved.