November Happy Hour will be moved to Thursday December 5th.

Mediachase.Commerce.Initialization.CommerceChangeQueueFactory fails

Vote:
 
[NullReferenceException: Object reference not set to an instance of an object.]
   Mediachase.Commerce.Initialization.CommerceChangeQueueFactory..ctor() +86
   lambda_method(Closure , IArguments ) +59
   StructureMap.Construction.<>c__DisplayClass2.b__0(IArguments args) +26
   StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args) +14
   StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +137

[StructureMapException: StructureMap Exception Code:  207
Internal exception while creating Instance '2b6181a7-2704-44e5-a30b-7590dd1ffde9' of PluginType EPiServer.Events.ChangeNotification.EventQueue.IChangeNotificationQueueFactory.  Check the inner exception for more details.]
   StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +647
   StructureMap.Pipeline.SmartInstance`1.build(Type pluginType, BuildSession session) +147
   StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
   StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
   StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
   StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +64
   StructureMap.BuildSession.CreateInstance(Type pluginType) +23
   StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
   StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
   StructureMap.Pipeline.ConstructorInstance.Get(String propertyName, BuildSession session) +86
   lambda_method(Closure , IArguments ) +53
   StructureMap.Construction.<>c__DisplayClass2.b__0(IArguments args) +27
   StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args) +15
   StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +321
   StructureMap.Pipeline.SmartInstance`1.build(Type pluginType, BuildSession session) +147
   StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
   StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
   StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
   StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +64
   StructureMap.BuildSession.CreateInstance(Type pluginType) +23
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +70

[ActivationException: Activation error occurred while trying to get instance of type IChangeNotificationManager, key ""]
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +181
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance() +59
   Mediachase.Commerce.Initialization.CommerceInitialization.Initialize(InitializationEngine context) +55
   EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +64
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +733
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +168
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +295
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +66
   EPiServer.Global..ctor() +90
   ASP.global_asax..ctor() +9

[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) +225
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +116
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1867
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +286
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +81
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +297
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +416

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

Does not occur on all environments

#90518
Sep 11, 2014 9:55
Vote:
 

Check if the connectionString.config transformation is correct for environment which failed.

In our case we were missing EPiServerDB connectionString.

#90519
Sep 11, 2014 9:58
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.