Try our conversational search powered by Generative AI!

Upgrading from Commerce 11.2.6 to 13.14.1, issue with "Activation error occurred while trying to get instance of type IProfileMigrator, key """

Vote:
 

Upgrading from Commerce 11.2.6 to 13.14.1, i get the following error on /EPiServer/Commerce/Migrate.

Activation error occurred while trying to get instance of type IProfileMigrator, key ""

Failure while building 'Lambda: Invoke(value(EPiServer.ServiceLocation.Internal.StructureMapConfiguredType`1+<>c__DisplayClass11_0`1[EPiServer.Commerce.Order.ICartProvider,EPiServer.Commerce.Order.ICartProvider]).instanceAccessor, value(EPiServer.ServiceLocation.Internal.StructureMapConfiguredType`1[EPiServer.Commerce.Order.ICartProvider])._serviceLocator)', check the inner exception for details
1.) Lambda: Invoke(value(EPiServer.ServiceLocation.Internal.StructureMapConfiguredType`1+<>c__DisplayClass11_0`1[EPiServer.Commerce.Order.ICartProvider,EPiServer.Commerce.Order.ICartProvider]).instanceAccessor, value(EPiServer.ServiceLocation.Internal.StructureMapConfiguredType`1[EPiServer.Commerce.Order.ICartProvider])._serviceLocator)
2.) Instance of EPiServer.Commerce.Order.ICartProvider
3.) new DefaultOrderRepository(*Default of ICartProvider*, *Default of IPurchaseOrderProvider*, *Default of IPaymentPlanProvider*, *Default of ISynchronizedObjectInstanceCache*, *Default of DefaultOrderEvents*, *Default of ServiceCollectionAccessor<IOrderRepositoryCallback>*)
4.) EPiServer.Commerce.Order.Internal.DefaultOrderRepository
5.) Instance of EPiServer.Commerce.Order.IOrderRepository (EPiServer.Commerce.Order.Internal.DefaultOrderRepository)
6.) new ProfileMigrator(*Default of IOrderRepository*, *Default of ICurrentMarket*, *Default of CartMigrator*)
7.) EPiServer.Commerce.Order.ProfileMigrator
8.) Instance of EPiServer.Commerce.Order.IProfileMigrator (EPiServer.Commerce.Order.ProfileMigrator)
9.) Container.GetInstance(EPiServer.Commerce.Order.IProfileMigrator)

vid lambda_method(Closure , IBuildSession , IContext )
vid StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context)
vid StructureMap.Pipeline.LazyLifecycleObject`1.CreateValue()
vid StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle)
vid StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph)
vid StructureMap.Container.GetInstance(Type pluginType)
vid EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)


Thinking i might have missed something, anyone recognize this and can point me in the right direction?

#214657
Jan 10, 2020 12:37
Vote:
 

It could not get an instance of ICartProvider. Which cart system are you using? 

#214678
Jan 12, 2020 1:12
Vote:
 

Hi Quan, we have not enabled Serializable carts yet.

#215766
Jan 13, 2020 12:06
* 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.