I am trying to install a new instance on my local machine of 21R2 and when trying to access the instance immediately after install, I get an “An item with the same key has already been added.” error message.
I’ve tried two separate builds (first and latest) and get the same. Some of our other team members are using 21R2, but they all updated from 21R1 to get there. I guess I can go that route if needed, but I would prefer to get a new instance of 21R2.
The stack trace follows below. Any insight would be greatly appreciated.
Stack Trace:
rArgumentException: An item with the same key has already been added.] System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +60 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +14338200 System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) +302 Microsoft.Extensions.DependencyInjection.AspNetCoreServiceCollectionExtensions.AddMarkedAssemblies(ApplicationPartManager applicationPartManager, IReadOnlyList`1 allAssemblies) +198 Microsoft.Extensions.DependencyInjection.<>c__DisplayClass0_0.<AddAspNetCore>b__2(ApplicationPartManager applicationPartManager) +19 Microsoft.Extensions.DependencyInjection.MvcCoreMvcBuilderExtensions.ConfigureApplicationPartManager(IMvcBuilder builder, Action`1 setupAction) +56 Microsoft.Extensions.DependencyInjection.AspNetCoreServiceCollectionExtensions.AddAspNetCore(IServiceCollection services, IReadOnlyList`1 assemblies) +426 PX.Web.Startup.ConfigureServices(IServiceCollection services) +139 PX.Data.DependencyInjection.LoggingStartupWrapper.PX.Hosting.IStartup.ConfigureServices(IServiceCollection services) +180 PX.Hosting.HostBuilder.CreateServiceProvider(HostBuilderContext hostBuilderContext, IEnumerable`1 configureServicesActions, Func`2 providerFactory, IEnumerable`1 configureContainerActions) +435 PX.Hosting.HostBuilder.Build() +146 PX.Data.DependencyInjection.CompositionRoot.CreateContainer(Configuration configuration) +577 PX.Web.PXApplication.Application_Start(Object sender, EventArgs e) +124
1HttpException (0x80004005): An item with the same key has already been added.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfoe] handlers) +185 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfoa] handlers, IntPtr appContext, HttpContext context) +168 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
3HttpException (0x80004005): An item with the same key has already been added.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724
|