Try our conversational search powered by Generative AI!

Circular reference found for content type: 'myNamespace.Models.Pages.StartPage'

Vote:
 

Hi, when I try to start the site with epi 9.12 I get the following error: "Circular reference found for content type: 'myNamespace.Models.Pages.StartPage".

However, when i set the enableModelSyncCommit in web.config to false, it works fine. Any help would be appreciated.

Stack trace:

[InvalidOperationException: Circular reference found for content type: 'myNamespace.Models.Pages.StartPage']
   EPiServer.DataAbstraction.TypeReferenceAnalyzer.ValidateCircularReference(Type type, Type typePropertiesNeedsToInheritFrom, List`1 usedTypes) +445
   EPiServer.DataAbstraction.TypeReferenceAnalyzer.ValidateCircularReference(Type type, Type typePropertiesNeedsToInheritFrom, List`1 usedTypes) +245
   EPiServer.DataAbstraction.TypeReferenceAnalyzer.ValidateCircularReference(Type type, Type typePropertiesNeedsToInheritFrom, List`1 usedTypes) +245
   EPiServer.DataAbstraction.TypeReferenceAnalyzer.Analyze(Type type) +78
   EPiServer.DataAbstraction.DefaultContentTypeRepository.ValidateModelType(ContentType contentType) +135
   EPiServer.DataAbstraction.DefaultContentTypeRepository.Save(ContentType contentType) +99
   EPiServer.DataAbstraction.RuntimeModel.ContentTypeSynchronizer.CreateType(ContentTypeModel contentModel) +136
   EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelRegister.CommitTypes(Boolean deleteUnusedTypes) +328
   EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelScanner.Sync(Boolean commitChanges) +224
   EPiServer.Initialization.Internal.ModelSyncInitialization.Initialize(InitializationEngine context) +375
   EPiServer.Framework.Initialization.Internal.<>c__DisplayClass3_0.b__0() +19
   EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) +52
   EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context) +80
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +245

[InitializationException: Initialize action failed for Initialize on class EPiServer.Initialization.Internal.ModelSyncInitialization, EPiServer, Version=9.12.2.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7]
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +558
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +114
   EPiServer.Framework.Initialization.InitializationEngine.Initialize() +32
   EPiServer.Framework.Initialization.<>c.b__7_0(InitializationEngine e) +9
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +366
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +170
   EPiServer.Global..ctor() +76
   myNamespace.Global..ctor() +29
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\2c673ada\38d70697\App_global.asax.xegfelra.0.cs:0

[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) +114
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1088
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +128
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +20
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +60
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +260
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9963380
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
#172372
Edited, Dec 01, 2016 13:41
Vote:
 

Do you have `StartPage` as property data type on some other page type?

#173204
Dec 16, 2016 1:05
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.