4.2 upgrade error

Posts   
 
    
MattE avatar
MattE
User
Posts: 77
Joined: 11-Sep-2007
# Posted on: 21-Jul-2015 09:17:09   

Hi there,

We have just migrated our solution to 4.2, following the migration steps.

We are getting this error now

None of the factories in the list of 'System.Data.SqlServerCe.3.5' were found. Please check machine.config and the .NET version your application is running on.

Seems to get thrown on the CommonDaoBase constructor

Line 39: /// <param name="entityName">Name of the entity owning this Dao</param> Line 40: /// <param name="entityFactory">Entity factory for the entity owning this Dao.</param> Line 41: public CommonDaoBase(InheritanceHierarchyType typeOfInheritance, string entityName, IEntityFactory entityFactory) Line 42: : base(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), typeOfInheritance, entityName, entityFactory) Line 43: {

MattE avatar
MattE
User
Posts: 77
Joined: 11-Sep-2007
# Posted on: 21-Jul-2015 09:53:15   

After examining machine.config on the upgrade test machine, we found several references to SQLServerCE in the DBProviderFactories config.

Removing them has resolved the issue, not too sure how they got there in the first place? Does LLBLGen add them during installation or source code generation?

Assuming it's safe to remove them...

thanks,

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 21-Jul-2015 15:02:49   

We don't add them, so they must have been added either manually or through a .net installer. It's one of those nasty little things that can go wrong indeed.

Frans Bouma | Lead developer LLBLGen Pro