Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

There is no contentType registered for: EPiServer.Commerce.Reporting.Order.CommerceReportingFolder

Vote:
 

When starting CommerceManager locally, I am getting the following error:

There is no contentType registered for: EPiServer.Commerce.Reporting.Order.CommerceReportingFolder

version="12.15.1" targetFramework="net462"

Please help... What am I doing wrong?

Stack Trace: 

[NotSupportedException: There is no contentType registered for: EPiServer.Commerce.Reporting.Order.CommerceReportingFolder]
   EPiServer.Core.Internal.DefaultContentRepository.GetDefault(ContentReference parentLink, CultureInfo language) +215
   EPiServer.Core.Internal.DefaultContentRepository.GetDefault(ContentReference parentLink) +62
   EPiServer.Commerce.Reporting.Initialization.ReportingInitializationModule.CreateCommerceReportingFolder(InitializationEngine context) +152
   EPiServer.Commerce.Reporting.Initialization.ReportingInitializationModule.Initialize(InitializationEngine context) +47
   EPiServer.Framework.Initialization.Internal.<>c__DisplayClass2_0.<Initialize>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() +179

[InitializationException: Initialize action failed for Initialize on class EPiServer.Commerce.Reporting.Initialization.ReportingInitializationModule, EPiServer.Commerce.Reporting, Version=12.15.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7]
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +492
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +153
   EPiServer.Framework.Initialization.InitializationEngine.Initialize() +40
   EPiServer.Framework.Initialization.<>c.<FrameworkInitialization>b__7_0(InitializationEngine e) +9
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +442
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +170
   EPiServer.Global..ctor() +44
   ASP.global_asax..ctor() +57

[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) +122
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +239
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +85
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1173
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +130
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +21
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +59
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +148
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303

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

#206327
Edited, Aug 14, 2019 14:51
Vote:
 

It sounds like you recently upgraded? You should start the CMS site first to make sure the content type models are saved correctly to database 

#206329
Aug 14, 2019 15:50
Vote:
 

Thanks Quan, I have not upgraded currently, but restored database from our QA.

I have tried to do exactly as you mentioned(to start CMS first), but seems like it doesn't want to help me out on this one.
Do you have some other suggestions that I can try?

#206333
Edited, Aug 15, 2019 9:34
Vote:
 

can you check if you have Episerver.Commerce.Reporting.dll in bin folder of your CMS site?

As a workaround you can remove that file from CM bin folder, but it's only a workaround ...

#206335
Aug 15, 2019 10:32
Vote:
 

Sorry Quan, came a bit away from this. Needed to do some more cleanup, that's all.

Thanks for helping out.

#206714
Aug 29, 2019 9:02
Vote:
 

Hi Quan, 

We just updated to

CMS: 11.13.0
Commerce: 13.7.1

And we get the following error when running the commerce manager:

Could not create instance of content type "CommerceReportingFolder" since it has an invalid .NET class associated: EPiServer.Commerce.Order.Reporting.Internal.CommerceReportingFolder, EPiServer.Business.Commerce, Version=12.10.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7
#207212
Edited, Sep 12, 2019 19:52
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.