Try our conversational search powered by Generative AI!

Error in InitializationEngine

Vote:
 

Hi,

Sometimes I have error

ERROR EPiServer.Framework.Initialization.InitializationEngine: Initialize action failed for Initialize on class EPiServer.Initialization.ModelSyncInitialization, EPiServer, Version=7.6.5.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7
System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at EPiServer.DataAbstraction.RuntimeModel.ContentTypeSynchronizer.GetType(ContentTypeModel contentTypeModel)
   at EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelRegister.b__0(ContentTypeModel model)
   at System.Threading.Tasks.Parallel.<>c__DisplayClassf`1.b__c()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass11.b__10(Object param0)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](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)
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
   at EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelRegister.RunWithParallelsOptions[T](List`1 items, Action`1 action)
   at EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelScanner.Sync(Boolean commitChanges)
   at EPiServer.Initialization.ModelSyncInitialization.Initialize(InitializationEngine context)
   at EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key)
   at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()
---> (Inner Exception #0) System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at EPiServer.DataAbstraction.RuntimeModel.ContentTypeSynchronizer.GetType(ContentTypeModel contentTypeModel)
   at EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelRegister.b__0(ContentTypeModel model)
   at System.Threading.Tasks.Parallel.<>c__DisplayClassf`1.b__c()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass11.b__10(Object param0)<--->

Version=7.6.5.0

After refresh, site is loaded.

Why this error may occur? What are the consequences of this error?

#112860
Nov 06, 2014 14:24
* 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.