Try our conversational search powered by Generative AI!

EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelScanner: Failed to eager compile type error

Vote:
 

Hi

We saw a similar issue on the forum thread :

https://world.episerver.com/forum/developer-forum/Problems-and-bugs/Thread-Container/2020/8/errors-logged-from-forms-after-latest-update/

But it said this got resolved in CMS version 11.20.1. We are on CMS version 11.20.6 and still facing this issue intermittently.

Please advice what can be done to avoid these.

Regards

Ritu

#254819
May 14, 2021 15:14
Vote:
 

Hello,

If you're confident that you're running a version which includes this patch -  I'd suggest you register a developer support incident here: https://world.episerver.com/support/

If the issue can be replicated when running the latest version, then it should be accepted through triage and investigated. 

Thanks

#254885
May 16, 2021 12:11
Vote:
 

Hi Jay

The root exception is the same, but the detailed error is not VarArgs exception but this :

ERROR EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelScanner: Failed to eager compile type Century.Website.Features.Pages.CenturyDataPage.CenturyDataPage
System.InvalidOperationException: Type 'Century.Website.Features.Pages.CenturyDataPage.CenturyDataPage' does not have any public constructor
   at EPiServer.Construction.ConstructorParameterResolver.ResolveConstructorInfo(Type type)
   at EPiServer.Construction.ConstructorParameterResolver.GetConstructorArgumentsAsList(Type type)
   at EPiServer.DataAbstraction.RuntimeModel.Internal.IlGeneratedContentDataActivator.Create(Type contentDataType)
   at EPiServer.DataAbstraction.RuntimeModel.Internal.ContentDataActivatorSelector.Create(Type contentDataType)
   at EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelScanner.<>c__DisplayClass27_0.<EagerCompileProxies>b__2()
System.InvalidOperationException: Type 'Century.Website.Features.Pages.CenturyDataPage.CenturyDataPage' does not have any public constructor
   at EPiServer.Construction.ConstructorParameterResolver.ResolveConstructorInfo(Type type)
   at EPiServer.Construction.ConstructorParameterResolver.GetConstructorArgumentsAsList(Type type)
   at EPiServer.DataAbstraction.RuntimeModel.Internal.IlGeneratedContentDataActivator.Create(Type contentDataType)
   at EPiServer.DataAbstraction.RuntimeModel.Internal.ContentDataActivatorSelector.Create(Type contentDataType)
   at EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelScanner.<>c__DisplayClass27_0.<EagerCompileProxies>b__2()

So, I'm not sure if this will be considered same bug or different. I'll go ahead and register this as an incident too.

Regards

Ritu

#255970
Jun 02, 2021 20:00
* 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.