Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
same
Updates:
EPiServer.CMS.AspNet.11.17.0 -> EPiServer.CMS.AspNet.11.18.0
EPiServer.CMS.Core.11.17.0 -> EPiServer.CMS.Core.11.18.0
EPiServer.Framework.11.17.0 -> EPiServer.Framework.11.18.0
EPiServer.Framework.AspNet.11.17.0 -> EPiServer.Framework.AspNet.11.18.0
2020-08-28 08:38:59,014 [14] ERROR EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelScanner: Failed to eager compile type EPiServer.Forms.Implementation.Elements.ChoiceElementBlock
System.InvalidOperationException: Calling convention must be VarArgs.
I have the same problem.
Failed to eager compile type EPiServer.Forms.Implementation.Elements.ChoiceElementBlock
System.InvalidOperationException: Calling convention must be VarArgs.
Does anyone know the cause or even better a solution?
I have this Error as well and as Jeroen mentioned , it has something to do with 11.18.0.
at System.Reflection.Emit.ModuleBuilder.GetMemberRefToken(MethodBase method, IEnumerable`1 optionalParameterTypes)
at System.Reflection.Emit.ModuleBuilder.GetMethodTokenInternal(MethodBase method, IEnumerable`1 optionalParameterTypes, Boolean useMethodDef)
at System.Reflection.Emit.ILGenerator.EmitCall(OpCode opcode, MethodInfo methodInfo, Type[] optionalParameterTypes)
at EPiServer.DataAbstraction.RuntimeModel.Internal.ContentModelILCompiler.GenerateMakeReadonly(IEnumerable`1 properties, MethodInfo baseMethod, MethodBuilder overriddenMethod)
at EPiServer.DataAbstraction.RuntimeModel.Internal.ContentModelILCompiler.OverrideMakeReadOnly(Type contentType, TypeBuilder typeBuilder, IEnumerable`1 propertiesToOverride)
at EPiServer.DataAbstraction.RuntimeModel.Internal.ContentModelILCompiler.GenerateType(Type contentType)
at EPiServer.DataAbstraction.RuntimeModel.Internal.ContentModelILCompiler.<GetOrGenerate>b__21_0(Type type)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at EPiServer.DataAbstraction.RuntimeModel.Internal.IlGeneratedContentDataActivator.Create(Type contentDataType)
at EPiServer.DataAbstraction.RuntimeModel.Internal.ContentTypeModelScanner.<>c__DisplayClass27_0.<EagerCompileProxies>b__2()
System.InvalidOperationException: Calling convention must be VarArgs.
The error goes away when I add below in my web.config
<add key="episerver:setoption:EPiServer.Core.ContentOptions.ProxyType,EPiServer" value="Castle" />
I have reached out to episerver dev support about this error and so far they havent been able to replicate the issue
A fix has been released for this issue
https://world.episerver.com/releases/episerver---update-339/ CMS-16988
After the latest update, I see these two errors appearing in the logs.
Failed to eager compile type EPiServer.Forms.Implementation.Elements.ChoiceElementBlock
Failed to eager compile type EPiServer.Forms.Implementation.Elements.SelectionElementBlock