System.TypeInitializationException when trying to initialize a new entity

Posts   
 
    
ms
User
Posts: 1
Joined: 10-Dec-2018
# Posted on: 10-Dec-2018 15:22:31   

when initializing a new entity, I get the following exception.

Message: SetUp : System.TypeInitializationException : The type initializer for 'LeanLinking.DAL.FactoryClasses.EntityFactoryFactory' threw an exception.
  ----> System.MissingMethodException : Method not found: 'System.Type SD.LLBLGen.Pro.ORMSupportClasses.IEntityFactoryCore.get_ForEntityType()'.

I would thankful if someone let me know what should I do to solve this.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 10-Dec-2018 18:10:52   

I assume you are using LLBLGen Pro v.5.5

Please make sure you are referencing v5.5 of the LLBLGenPro runtime libraries (SD.LLBLGen.Pro.ORMSupportClasses), Everywhere in your project. It might be an older version has been referenced somewhere or maybe deployed to the production instead of the latest one.