Intermittant error: Duplicate type name within an assembly

Vote:
 

Hi, I'm irregularly getting the below error upon site initalisation. 

It only goes away after clean/rebuild and/or iisreset and/or clearing "Temporary ASP.NET Files". 

Has anyone seen this before?

[ArgumentException: Duplicate type name within an assembly.]
   System.Reflection.Emit.ModuleBuilder.CheckTypeNameConflict(String strTypeName, Type enclosingType) +14730529
   System.Reflection.Emit.AssemblyBuilderData.CheckTypeNameConflict(String strTypeName, TypeBuilder enclosingType) +63
   System.Reflection.Emit.TypeBuilder.Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module, PackingSize iPackingSize, Int32 iTypeSize, TypeBuilder enclosingType) +162
   System.Reflection.Emit.ModuleBuilder.DefineType(String name, TypeAttributes attr, Type parent) +204
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentModelILCompiler.GenerateType(Type contentType) +164
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentModelILCompiler.<GetOrGenerate>b__21_0(Type type) +109
   System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +87
   EPiServer.DataAbstraction.RuntimeModel.Internal.IlGeneratedContentDataActivator.Create(Type contentDataType) +28
   EPiServer.Construction.Internal.ContentDataFactory`1.CreateInstance(Type modelType) +69
   EPiServer.Construction.Internal.ContentDataFactory`1.CreateInstance(ContentType contentType) +230
   EPiServer.Construction.Internal.ContentDataBuilder.AddProperties(IPropertyBlock blockProperty, BlockPropertyDefinitionType blockDefintionType) +119
   EPiServer.Construction.Internal.ContentDataBuilder.AddContentTypeProperties(IContentData contentData, ContentType contentType) +226
   EPiServer.Construction.Internal.ContentDataBuilder.AddProperties(IContentData contentData, BuildingContext buildingContext) +163
   EPiServer.Construction.Internal.ContentFactory.CreateContent(ContentType contentType, BuildingContext buildingContext) +293
   EPiServer.DataAccess.Internal.ContentDB.CreateContent(ContentType contentType) +14
   EPiServer.DataAccess.Internal.ContentLoadDB.LoadContentInternal(ContentReference contentLink, Int32 languageBranchId, DbDataReader reader) +279
   EPiServer.DataAccess.Internal.<>c__DisplayClass4_0.<LoadVersion>b__0() +462
   EPiServer.Data.Providers.Internal.<>c__DisplayClass31_0`1.<Execute>b__0() +58
   EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute(Func`1 method) +70
   EPiServer.Core.<>c__DisplayClass127_0.<LoadContentFromCacheOrRepository>b__0() +35
   EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait(IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) +1023
   EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) +107
   EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) +603
   EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) +309
   EPiServer.Core.Internal.DefaultContentLoader.TryGet(ContentReference contentLink, LoaderOptions loaderOptions, T& content) +574
   EPiServer.Core.Internal.DefaultContentLoader.Get(ContentReference contentLink, LoaderOptions loaderOptions) +99
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelRegister.ValidateChangeOfModelType(PropertyDefinitionModel propertyModel, String modelName) +313
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelRegister.SetStateForPropertyDefinitionModels(ContentTypeModel model) +177
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelRegister.<AnalyzeProperties>b__15_0(ContentTypeModel model) +67
   System.Threading.Tasks.<>c__DisplayClass17_0`1.<ForWorker>b__1() +1224
   System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) +32
   System.Threading.Tasks.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) +272

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +4751668
   System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +14351633
   System.Threading.Tasks.Parallel.ForWorker(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) +1402
   System.Threading.Tasks.Parallel.ForEachWorker(IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) +367
   System.Threading.Tasks.Parallel.ForEach(IEnumerable`1 source, Action`1 body) +158
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelRegister.AnalyzeProperties() +105
   EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelScanner.Sync(Boolean commitChanges) +298
   EPiServer.Initialization.Internal.ModelSyncInitialization.Initialize(InitializationEngine context) +561
   EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) +58
   EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context) +123
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +248

[InitializationException: Initialize action failed for Initialize on class EPiServer.Initialization.Internal.ModelSyncInitialization, EPiServer, Version=11.20.5.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7]
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +800
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +194
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +876
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +225
   EPiServer.Global..ctor() +42
   DXA.Web.EPiServerApplication..ctor() in C:\dev\XX\Project\src\DXA.Web\Global.asax.cs:23
   ASP.global_asax..ctor() +42

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +139
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1431
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +184
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +80
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +182
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +714

#260130
Aug 05, 2021 5:02
valdis - Sep 09, 2021 12:56
If possible, can you provide also packages.config file?
Vote:
 

Sure.. you think this would be caused by a 3rd party?

<packages>
  <package id="Advanced.CMS.TimeProperty" version="1.0.0" targetFramework="net472" />
  <package id="BVN.404Handler" version="11.4.0" targetFramework="net472" />
  <package id="Castle.Core" version="4.4.0" targetFramework="net472" />
  <package id="Castle.Windsor" version="4.1.0" targetFramework="net472" />
  <package id="DbLocalizationProvider.AdminUI.EPiServer" version="5.8.2" targetFramework="net472" />
  <package id="DbLocalizationProvider.EPiServer" version="5.8.2" targetFramework="net472" />
  <package id="eGandalf.Epi.Validation" version="1.1.2" targetFramework="net472" />
  <package id="EntityFramework" version="6.2.0" targetFramework="net471" />
  <package id="EPiServer.AddOns.Helpers" version="0.4.0.0" targetFramework="net471" />
  <package id="EPiServer.Azure" version="10.0.1" targetFramework="net472" />
  <package id="EPiServer.CMS" version="11.20.5" targetFramework="net472" />
  <package id="EPiServer.Cms.AddOns.Blocks" version="2.4.1" targetFramework="net471" />
  <package id="EPiServer.CMS.AspNet" version="11.20.5" targetFramework="net472" />
  <package id="EPiServer.CMS.Core" version="11.20.5" targetFramework="net472" />
  <package id="EPiServer.CMS.TinyMce" version="2.13.3" targetFramework="net472" />
  <package id="EPiServer.CMS.UI" version="11.34.1" targetFramework="net472" />
  <package id="EPiServer.CMS.UI.AspNetIdentity" version="11.34.1" targetFramework="net472" />
  <package id="EPiServer.CMS.UI.Core" version="11.34.1" targetFramework="net472" />
  <package id="EPiServer.ConnectForMarketingAutomation" version="5.6.3" targetFramework="net472" />
  <package id="EPiServer.Find" version="13.4.4" targetFramework="net472" />
  <package id="EPiServer.Find.Cms" version="13.4.4" targetFramework="net472" />
  <package id="EPiServer.Find.Framework" version="13.4.4" targetFramework="net472" />
  <package id="EPiServer.Forms" version="4.30.2" targetFramework="net472" />
  <package id="EPiServer.Forms.Core" version="4.30.2" targetFramework="net472" />
  <package id="EPiServer.Forms.Samples" version="3.7.0" targetFramework="net472" />
  <package id="EPiServer.Forms.UI" version="4.30.2" targetFramework="net472" />
  <package id="EPiServer.Framework" version="11.20.5" targetFramework="net472" />
  <package id="EPiServer.Framework.AspNet" version="11.20.5" targetFramework="net472" />
  <package id="EPiServer.GoogleAnalytics" version="2.3.2" targetFramework="net472" />
  <package id="Episerver.GoogleMapsEditor" version="1.0.13.0" targetFramework="net472" />
  <package id="EPiServer.Insight.Cms" version="1.24.0" targetFramework="net472" />
  <package id="EPiServer.Insight.UI" version="1.24.0" targetFramework="net472" />
  <package id="EPiServer.Labs.BlockEnhancements" version="0.10.0" targetFramework="net472" />
  <package id="EPiServer.Logging.Log4Net" version="2.2.2" targetFramework="net471" />
  <package id="EPiServer.Marketing.KPI" version="2.5.4" targetFramework="net472" />
  <package id="EPiServer.Marketing.Messaging" version="1.3.0" targetFramework="net471" />
  <package id="EPiServer.Marketing.Testing" version="2.6.5" targetFramework="net472" />
  <package id="EPiServer.MarketingAutomationIntegration.MSDynamics" version="4.4.1" targetFramework="net472" />
  <package id="EPiServer.Packaging" version="3.4.0" targetFramework="net471" />
  <package id="EPiServer.Profiles.Client" version="1.23.0" targetFramework="net472" />
  <package id="EPiServer.Profiles.Client.Common" version="1.23.0" targetFramework="net472" />
  <package id="EPiServer.ServiceApi" version="5.4.5" targetFramework="net472" />
  <package id="EPiServer.ServiceLocation.StructureMap" version="2.0.3" targetFramework="net472" />
  <package id="EPiServer.Session" version="1.0.1" targetFramework="net472" />
  <package id="EPiServer.Social" version="3.0.2" targetFramework="net471" />
  <package id="EPiServer.Telemetry.UI" version="1.3.0" targetFramework="net472" />
  <package id="EPiServer.Telemetry.UI.Core" version="1.3.0" targetFramework="net472" />
  <package id="EPiServer.TinyMCESpellChecker" version="2.0.0" targetFramework="net471" />
  <package id="EPiServer.Tracking.Cms" version="1.23.0" targetFramework="net472" />
  <package id="EPiServer.Tracking.Core" version="1.23.0" targetFramework="net472" />
  <package id="EPiServer.Tracking.PageView" version="1.1.0" targetFramework="net471" />
  <package id="EPiServer.VisitorGroupsCriteriaPack" version="2.0.1" targetFramework="net471" />
  <package id="Geta.404Handler" version="1.2.1" targetFramework="net472" />
  <package id="Geta.SEO.Sitemaps" version="4.0.0" targetFramework="net472" />
  <package id="Geta.Tags" version="4.0.11" targetFramework="net471" />
  <package id="ImageProcessor" version="2.9.0" targetFramework="net472" />
  <package id="ImageProcessor.Plugins.WebP" version="1.3.0" targetFramework="net472" />
  <package id="ImageProcessor.Web" version="4.12.0" targetFramework="net472" />
  <package id="ImageProcessor.Web.Config" version="2.6.0" targetFramework="net472" />
  <package id="ImageProcessor.Web.Episerver" version="5.6.5.15612" targetFramework="net472" />
  <package id="ImageProcessor.Web.Episerver.Azure" version="5.6.3.26563" targetFramework="net472" />
  <package id="InsightFormFieldMapper" version="1.1.2" targetFramework="net471" />
  <package id="LocalizationProvider" version="5.8.2" targetFramework="net472" />
  <package id="LocalizationProvider.Abstractions" version="5.8.2" targetFramework="net472" />
  <package id="LocalizationProvider.AspNet" version="5.8.2" targetFramework="net472" />
  <package id="log4net" version="2.0.8" targetFramework="net471" />
  <package id="Microsoft.ApplicationInsights" version="2.10.0" targetFramework="net471" />
  <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.4.0" targetFramework="net471" />
  <package id="Microsoft.ApplicationInsights.DependencyCollector" version="2.10.0" targetFramework="net471" />
  <package id="Microsoft.ApplicationInsights.Log4NetAppender" version="2.7.2" targetFramework="net471" />
  <package id="Microsoft.ApplicationInsights.PerfCounterCollector" version="2.10.0" targetFramework="net471" />
  <package id="Microsoft.ApplicationInsights.Web" version="2.10.0" targetFramework="net471" />
  <package id="Microsoft.ApplicationInsights.WindowsServer" version="2.10.0" targetFramework="net471" />
  <package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="2.10.0" targetFramework="net471" />
  <package id="Microsoft.AspNet.Identity.Core" version="2.2.3" targetFramework="net472" />
  <package id="Microsoft.AspNet.Identity.EntityFramework" version="2.2.3" targetFramework="net472" />
  <package id="Microsoft.AspNet.Identity.Owin" version="2.2.3" targetFramework="net472" />
  <package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net472" />
  <package id="Microsoft.AspNet.Providers.Core" version="2.0.0" targetFramework="net471" />
  <package id="Microsoft.AspNet.Razor" version="3.2.7" targetFramework="net472" />
  <package id="Microsoft.AspNet.TelemetryCorrelation" version="1.0.5" targetFramework="net471" />
  <package id="Microsoft.AspNet.WebApi" version="5.2.6" targetFramework="net471" />
  <package id="Microsoft.AspNet.WebApi.Client" version="5.2.7" targetFramework="net472" />
  <package id="Microsoft.AspNet.WebApi.Core" version="5.2.7" targetFramework="net472" />
  <package id="Microsoft.AspNet.WebApi.Owin" version="5.2.3" targetFramework="net471" />
  <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.7" targetFramework="net472" />
  <package id="Microsoft.AspNet.WebPages" version="3.2.7" targetFramework="net472" />
  <package id="Microsoft.Azure.KeyVault.Core" version="1.0.0" targetFramework="net471" />
  <package id="Microsoft.Azure.Services.AppAuthentication" version="1.0.3" targetFramework="net472" />
  <package id="Microsoft.Bcl.AsyncInterfaces" version="5.0.0" targetFramework="net472" />
  <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net471" />
  <package id="Microsoft.CrmSdk.CoreAssemblies" version="9.0.2.17" targetFramework="net472" />
  <package id="Microsoft.CrmSdk.CoreTools" version="9.0.3.4" targetFramework="net472" />
  <package id="Microsoft.CrmSdk.Deployment" version="9.0.2.17" targetFramework="net472" />
  <package id="Microsoft.Data.Edm" version="5.8.4" targetFramework="net471" />
  <package id="Microsoft.Data.OData" version="5.8.4" targetFramework="net471" />
  <package id="Microsoft.Data.Services.Client" version="5.8.4" targetFramework="net471" />
  <package id="Microsoft.Extensions.DependencyInjection" version="5.0.0" targetFramework="net472" />
  <package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="5.0.0" targetFramework="net472" />
  <package id="Microsoft.Extensions.Http" version="5.0.0" targetFramework="net472" />
  <package id="Microsoft.Extensions.Logging" version="5.0.0" targetFramework="net472" />
  <package id="Microsoft.Extensions.Logging.Abstractions" version="5.0.0" targetFramework="net472" />
  <package id="Microsoft.Extensions.Options" version="5.0.0" targetFramework="net472" />
  <package id="Microsoft.Extensions.Primitives" version="5.0.0" targetFramework="net472" />
  <package id="Microsoft.IdentityModel" version="6.1.7600.16394" targetFramework="net471" />
  <package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="3.14.2" targetFramework="net472" />
  <package id="Microsoft.IdentityModel.JsonWebTokens" version="5.3.0" targetFramework="net472" />
  <package id="Microsoft.IdentityModel.Logging" version="5.3.0" targetFramework="net472" />
  <package id="Microsoft.IdentityModel.Protocols" version="5.3.0" targetFramework="net472" />
  <package id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="5.3.0" targetFramework="net472" />
  <package id="Microsoft.IdentityModel.Tokens" version="5.3.0" targetFramework="net472" />
  <package id="Microsoft.IO.RecyclableMemoryStream" version="1.2.2" targetFramework="net471" />
  <package id="Microsoft.Owin" version="4.2.0" targetFramework="net472" />
  <package id="Microsoft.Owin.Host.SystemWeb" version="4.1.1" targetFramework="net472" />
  <package id="Microsoft.Owin.Security" version="4.2.0" targetFramework="net472" />
  <package id="Microsoft.Owin.Security.Cookies" version="3.0.1" targetFramework="net472" />
  <package id="Microsoft.Owin.Security.OAuth" version="3.0.1" targetFramework="net472" />
  <package id="Microsoft.Owin.Security.OpenIdConnect" version="4.2.0" targetFramework="net472" />
  <package id="Microsoft.Rest.ClientRuntime" version="2.3.20" targetFramework="net472" />
  <package id="Microsoft.Tpl.Dataflow" version="4.5.24" targetFramework="net472" />
  <package id="Microsoft.VisualStudio.SlowCheetah" version="3.1.66" targetFramework="net471" developmentDependency="true" />
  <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net472" />
  <package id="Microsoft.Web.Xdt" version="2.1.2" targetFramework="net471" />
  <package id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" targetFramework="net471" />
  <package id="N1990.Episerver.Cms.Audit" version="1.5.1" targetFramework="net472" />
  <package id="Newtonsoft.Json" version="11.0.2" targetFramework="net472" />
  <package id="NHunspell" version="1.2.5554.16953" targetFramework="net471" />
  <package id="NuGet.Core" version="2.7.2" targetFramework="net471" />
  <package id="Owin" version="1.0" targetFramework="net471" />
  <package id="PagedList" version="1.17.0.0" targetFramework="net471" />
  <package id="PagedList.Mvc" version="4.5.0.0" targetFramework="net471" />
  <package id="POSSIBLE.RobotsTxtHandler" version="4.0.0.0" targetFramework="net472" />
  <package id="PowerSlice" version="4.0.1" targetFramework="net472" />
  <package id="RestSharp" version="106.2.2" targetFramework="net471" />
  <package id="StructureMap" version="4.7.1" targetFramework="net471" />
  <package id="structuremap.web" version="4.0.0.315" targetFramework="net471" />
  <package id="Swashbuckle" version="5.6.0" targetFramework="net471" />
  <package id="Swashbuckle.Core" version="5.6.0" targetFramework="net471" />
  <package id="System.Buffers" version="4.5.1" targetFramework="net472" />
  <package id="System.ComponentModel.Annotations" version="4.5.0" targetFramework="net472" />
  <package id="System.ComponentModel.EventBasedAsync" version="4.3.0" targetFramework="net471" />
  <package id="System.Data.SqlClient" version="4.6.1" targetFramework="net472" />
  <package id="System.Diagnostics.DiagnosticSource" version="5.0.0" targetFramework="net472" />
  <package id="System.Dynamic.Runtime" version="4.3.0" targetFramework="net471" />
  <package id="System.IdentityModel.Tokens.Jwt" version="5.3.0" targetFramework="net472" />
  <package id="System.IO" version="4.3.0" targetFramework="net472" />
  <package id="System.Linq.Expressions" version="4.3.0" targetFramework="net471" />
  <package id="System.Linq.Queryable" version="4.3.0" targetFramework="net471" />
  <package id="System.Memory" version="4.5.4" targetFramework="net472" />
  <package id="System.Net.Requests" version="4.3.0" targetFramework="net471" />
  <package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
  <package id="System.Reflection.Emit" version="4.3.0" targetFramework="net472" />
  <package id="System.Reflection.Emit.Lightweight" version="4.3.0" targetFramework="net471" />
  <package id="System.Runtime" version="4.3.0" targetFramework="net472" />
  <package id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" targetFramework="net472" />
  <package id="System.Security.AccessControl" version="4.5.0" targetFramework="net472" />
  <package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net472" />
  <package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net472" />
  <package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net472" />
  <package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net472" />
  <package id="System.Security.Cryptography.Xml" version="4.5.0" targetFramework="net472" />
  <package id="System.Security.Permissions" version="4.5.0" targetFramework="net472" />
  <package id="System.Security.Principal.Windows" version="4.5.1" targetFramework="net472" />
  <package id="System.Spatial" version="5.8.4" targetFramework="net471" />
  <package id="System.Threading.AccessControl" version="4.5.0" targetFramework="net472" />
  <package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
  <package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
  <package id="VisitorGroupUsage" version="11.0.1" targetFramework="net471" />
  <package id="WebActivatorEx" version="2.0" targetFramework="net471" />
  <package id="WindowsAzure.ServiceBus" version="6.0.0" targetFramework="net472" />
  <package id="WindowsAzure.Storage" version="9.3.3" targetFramework="net472" />
  <package id="X.PagedList" version="7.6.0" targetFramework="net471" />
  <package id="X.PagedList.Mvc" version="7.6.0" targetFramework="net471" />
</packages>
#262028
Sep 10, 2021 1:00
Vote:
 

I would put my cards on "Microsoft.Extensions.*" assemblies. Possible for you to remove those (comment out dependant code) and see if that is the culprit here? And btw, do you need all DI related assemblies for Episerver site (if you have StructureMap installed)?

#262029
Sep 10, 2021 6:39
Arjan Paauw - Sep 15, 2021 9:51
Thanks.. I removed the "Microsoft.Extensions.*" packages but it hasn't gone away. What DI related assemblies do you mean? EPiServer.ServiceLocation.StructureMap is required?
valdis - Sep 15, 2021 13:26
I meant "Microsoft.Extensions.DependencyInjection.*" packages. If you have Episerver StructureMap libs installed, I was just wondering why you need Msft.Ext.DI ones..
Vote:
 

I was able to 'fix' this issue by adding this to web.config:
<add key="episerver:setoption:EPiServer.Core.ContentOptions.ProxyType,EPiServer" value="Castle" />

#265623
Oct 25, 2021 21:51
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.