Commerce Manager Error (Activation error occurred while trying to get instance of type ThumbnailManager) in DXC after upgrade to CMS Upgrade to 11.3.2

Vote:
 

I'm getting an error around the thumbnail manager after doing an upgrade a few days ago only on the DXC. Has anyone come across it?

2018-02-06T10:25:50,Error,mgrstja01mstrn249fprep,d0fd86,636535095502020847,0,6540,31,"EPiServer.Framework.Initialization.InitializationEngine : Initialize action failed for 'Initialize on class EPiServer.Initialization.Internal.ThumbnailInitialization, EPiServer.Cms.AspNet, Version=11.3.2.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
EPiServer.ServiceLocation.ActivationException: Activation error occurred while trying to get instance of type ThumbnailManagerEventHandler, key "" ---> StructureMap.Building.StructureMapInterceptorException: Decorator Interceptor failed during object construction.  See the inner exception
1.) FuncInterceptor of EPiServer.ImageLibrary.ImageServiceOptions: Invoke(value(StructureMap.Building.Interception.InterceptorFactory+<>c__DisplayClass2_0`1[EPiServer.ImageLibrary.ImageServiceOptions]).func, ImageServiceOptions)
2.) EPiServer.ImageLibrary.ImageServiceOptions
3.) Instance of EPiServer.ImageLibrary.ImageServiceOptions
4.) new ThumbnailManager(*Default of IContentRepository*, *Default of IBlobFactory*, *Default of IBlobResolver*, *Default of IBlobAssigner*, *Default of ImageServiceOptions*, *Default of IMimeTypeResolver*)
5.) EPiServer.Core.Internal.ThumbnailManager
6.) Instance of EPiServer.Core.Internal.ThumbnailManager
7.) new ThumbnailManagerEventHandler(*Default of IContentEvents*, *Default of IBlobResolver*, *Default of IBlobAssigner*, *Default of ThumbnailManager*, *Default of IBlobFactory*)
8.) EPiServer.Core.Internal.ThumbnailManagerEventHandler
9.) Instance of EPiServer.Core.Internal.ThumbnailManagerEventHandler
10.) Container.GetInstance(EPiServer.Core.Internal.ThumbnailManagerEventHandler)
 ---> System.Configuration.ConfigurationErrorsException: The type 'Microsoft.ServiceModel.Samples.UdpTransportElement, EPiServer.Events' registered for extension 'udpTransportCustom' could not be loaded. (D:\home\site\wwwroot\web.config line 574)
   at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   at System.Configuration.ConfigurationSectionCollection.Get(String name)
   at System.ServiceModel.Configuration.ServiceModelSectionGroup.get_Client()
   at EPiServer.Configuration.Transform.Internal.ImageServiceOptionsTransform.Transform(ImageServiceOptions options)
   at EPiServer.ServiceLocation.ServiceConfigurationProviderExtensions.<>c__DisplayClass33_0`1.b__0(IServiceLocator l, TService s)
   at EPiServer.ServiceLocation.Internal.StructureMapConfiguration.<>c__DisplayClass19_0`1.b__9(T service)
   at lambda_method(Closure , IBuildSession , IContext )
   --- End of inner exception stack trace ---
   at lambda_method(Closure , IBuildSession , IContext )
   at StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context)
   at StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle)
   at StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph)
   at StructureMap.Container.DoGetInstance(Type pluginType)
   at StructureMap.Container.GetInstance(Type pluginType)
   at EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
   --- End of inner exception stack trace ---
   at EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
   at EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance[TService]()
   at EPiServer.Initialization.Internal.ThumbnailInitialization.Initialize(InitializationEngine context)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context)
   at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()",
2018-02-06T10:27:06,Error,mgrstja01mstrn249fprep,d0fd86,636535096268263701,0,6540,16,"EPiServer.Framework.Initialization.InitializationEngine : Initialize action failed for 'Initialize on class EPiServer.Initialization.Internal.ThumbnailInitialization, EPiServer.Cms.AspNet, Version=11.3.2.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
EPiServer.ServiceLocation.ActivationException: Activation error occurred while trying to get instance of type ThumbnailManagerEventHandler, key "" ---> StructureMap.Building.StructureMapInterceptorException: Decorator Interceptor failed during object construction.  See the inner exception
1.) FuncInterceptor of EPiServer.ImageLibrary.ImageServiceOptions: Invoke(value(StructureMap.Building.Interception.InterceptorFactory+<>c__DisplayClass2_0`1[EPiServer.ImageLibrary.ImageServiceOptions]).func, ImageServiceOptions)
2.) EPiServer.ImageLibrary.ImageServiceOptions
3.) Instance of EPiServer.ImageLibrary.ImageServiceOptions
4.) new ThumbnailManager(*Default of IContentRepository*, *Default of IBlobFactory*, *Default of IBlobResolver*, *Default of IBlobAssigner*, *Default of ImageServiceOptions*, *Default of IMimeTypeResolver*)
5.) EPiServer.Core.Internal.ThumbnailManager
6.) Instance of EPiServer.Core.Internal.ThumbnailManager
7.) new ThumbnailManagerEventHandler(*Default of IContentEvents*, *Default of IBlobResolver*, *Default of IBlobAssigner*, *Default of ThumbnailManager*, *Default of IBlobFactory*)
8.) EPiServer.Core.Internal.ThumbnailManagerEventHandler
9.) Instance of EPiServer.Core.Internal.ThumbnailManagerEventHandler
10.) Container.GetInstance(EPiServer.Core.Internal.ThumbnailManagerEventHandler)
 ---> System.Configuration.ConfigurationErrorsException: The type 'Microsoft.ServiceModel.Samples.UdpTransportElement, EPiServer.Events' registered for extension 'udpTransportCustom' could not be loaded. (D:\home\site\wwwroot\web.config line 574)
   at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   at System.Configuration.ConfigurationSectionCollection.Get(String name)
   at System.ServiceModel.Configuration.ServiceModelSectionGroup.get_Client()
   at EPiServer.Configuration.Transform.Internal.ImageServiceOptionsTransform.Transform(ImageServiceOptions options)
   at EPiServer.ServiceLocation.ServiceConfigurationProviderExtensions.<>c__DisplayClass33_0`1.b__0(IServiceLocator l, TService s)
   at EPiServer.ServiceLocation.Internal.StructureMapConfiguration.<>c__DisplayClass19_0`1.b__9(T service)
   at lambda_method(Closure , IBuildSession , IContext )
   --- End of inner exception stack trace ---
   at lambda_method(Closure , IBuildSession , IContext )
   at StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context)
   at StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle)
   at StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph)
   at StructureMap.Container.DoGetInstance(Type pluginType)
   at StructureMap.Container.GetInstance(Type pluginType)
   at EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
   --- End of inner exception stack trace ---
   at EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
   at EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance[TService]()
   at EPiServer.Initialization.Internal.ThumbnailInitialization.Initialize(InitializationEngine context)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context)
   at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()",
2018-02-06T10:32:07,Error,mgrstja01mstrn249fprep,d0fd86,636535099274831690,0,6540,15,"EPiServer.Framework.Initialization.InitializationEngine : Initialize action failed for 'Initialize on class EPiServer.Initialization.Internal.ThumbnailInitialization, EPiServer.Cms.AspNet, Version=11.3.2.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'
EPiServer.ServiceLocation.ActivationException: Activation error occurred while trying to get instance of type ThumbnailManagerEventHandler, key "" ---> StructureMap.Building.StructureMapInterceptorException: Decorator Interceptor failed during object construction.  See the inner exception
1.) FuncInterceptor of EPiServer.ImageLibrary.ImageServiceOptions: Invoke(value(StructureMap.Building.Interception.InterceptorFactory+<>c__DisplayClass2_0`1[EPiServer.ImageLibrary.ImageServiceOptions]).func, ImageServiceOptions)
2.) EPiServer.ImageLibrary.ImageServiceOptions
3.) Instance of EPiServer.ImageLibrary.ImageServiceOptions
4.) new ThumbnailManager(*Default of IContentRepository*, *Default of IBlobFactory*, *Default of IBlobResolver*, *Default of IBlobAssigner*, *Default of ImageServiceOptions*, *Default of IMimeTypeResolver*)
5.) EPiServer.Core.Internal.ThumbnailManager
6.) Instance of EPiServer.Core.Internal.ThumbnailManager
7.) new ThumbnailManagerEventHandler(*Default of IContentEvents*, *Default of IBlobResolver*, *Default of IBlobAssigner*, *Default of ThumbnailManager*, *Default of IBlobFactory*)
8.) EPiServer.Core.Internal.ThumbnailManagerEventHandler
9.) Instance of EPiServer.Core.Internal.ThumbnailManagerEventHandler
10.) Container.GetInstance(EPiServer.Core.Internal.ThumbnailManagerEventHandler)
 ---> System.Configuration.ConfigurationErrorsException: The type 'Microsoft.ServiceModel.Samples.UdpTransportElement, EPiServer.Events' registered for extension 'udpTransportCustom' could not be loaded. (D:\home\site\wwwroot\web.config line 574)
   at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   at System.Configuration.ConfigurationSectionCollection.Get(String name)
   at System.ServiceModel.Configuration.ServiceModelSectionGroup.get_Client()
   at EPiServer.Configuration.Transform.Internal.ImageServiceOptionsTransform.Transform(ImageServiceOptions options)
   at EPiServer.ServiceLocation.ServiceConfigurationProviderExtensions.<>c__DisplayClass33_0`1.b__0(IServiceLocator l, TService s)
   at EPiServer.ServiceLocation.Internal.StructureMapConfiguration.<>c__DisplayClass19_0`1.b__9(T service)
   at lambda_method(Closure , IBuildSession , IContext )
   --- End of inner exception stack trace ---
   at lambda_method(Closure , IBuildSession , IContext )
   at StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context)
   at StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle)
   at StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph)
   at StructureMap.Container.DoGetInstance(Type pluginType)
   at StructureMap.Container.GetInstance(Type pluginType)
   at EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
   --- End of inner exception stack trace ---
   at EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
   at EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance[TService]()
   at EPiServer.Initialization.Internal.ThumbnailInitialization.Initialize(InitializationEngine context)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key)
   at EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context)
   at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()",
#187912
Feb 06, 2018 11:34
Vote:
 

Hi,

Make sure this line in web.config

        <add name="udpTransportCustom" type="Microsoft.ServiceModel.Samples.UdpTransportElement, EPiServer.Framework" />

is updated to

        <add name="udpTransportCustom" type="Microsoft.ServiceModel.Samples.UdpTransportElement, EPiServer.Framework.AspNet" />

#187917
Feb 06, 2018 12:49
Vote:
 

Should this just be in the DXC envionment?

#187956
Feb 07, 2018 9:47
Vote:
 

No, the upgrade should work just fine - and this is not DXC-specific. You might have a web.config transformation which changes it back to the wrong value. 

#187958
Feb 07, 2018 9:49
Vote:
 

I've checked this in the commerce manager application and it's correct to what you've said it should be and there's no config transforms that would affect it. We have seen the Pass portal sometimes not be able to copy over locked files and it's the first deployment of the new code so I'll try another deployment.

#188005
Feb 08, 2018 9:37
Vote:
 
<p>Thanks @Quan this was indeed in the end a transform issue as it was replacing a whole section and still had the old settings. All fixed now&nbsp;</p>
#188042
Feb 09, 2018 10:17
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.