Assemby for EntityFramework 5.0 not found (working with EF6)

Assemby for EntityFramework 5.0 not found (working with EF6)

Postby christian_bertram » Mon 22 Jun 2015 15:05

The following Assembly was not found:
Assembly "EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"


Why does it aks for the EF5 asembly?


The referenced version in my config file is correct (6.0):
Code: Select all
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />


Provider:
Code: Select all
<provider invariantName="Devart.Data.Oracle" type="Devart.Data.Oracle.Entity.OracleEntityProviderServices, Devart.Data.Oracle.Entity, Version=8.4.437.6, Culture=neutral, PublicKeyToken=09af7300eec23701" />


I also checked the installed nuget package - 6.13
The exception only occurs when i switch t othe dotconnect provider. It works with ODAC.

For Migration i inserted the following line and added a reference to Devart.Data.Oracle.Entity.Migrations :
Code: Select all
SetSqlGenerator("Devart.Data.Oracle", new Devart.Data.Oracle.Entity.Migrations.OracleEntityMigrationSqlGenerator());


Was it the wrong reference ?
christian_bertram
 
Posts: 16
Joined: Mon 22 Jun 2015 08:38

Re: Assemby for EntityFramework 5.0 not found (working with EF6)

Postby Shalex » Tue 23 Jun 2015 07:15

There are different versions of Devart.Data.Oracle.Entity.dll:
"C:\Program Files (x86)\Devart\dotConnect\Oracle\Entity\EF1\"
"C:\Program Files (x86)\Devart\dotConnect\Oracle\Entity\EF4\"
"C:\Program Files (x86)\Devart\dotConnect\Oracle\Entity\EF5\"
"C:\Program Files (x86)\Devart\dotConnect\Oracle\Entity\EF6\" (revision number is *.6)

christian_bertram wrote:The following Assembly was not found:
Assembly "EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
I also checked the installed nuget package - 6.13
Please run your project in the debug mode and make sure that the only Devart.* assemblies loaded in the process of your application are:
Devart.Data.dll v5.0.1229.0
Devart.Data.Oracle.dll v8.4.437.0
Devart.Data.Oracle.Entity.dll v8.4.437.6
Shalex
Devart Team
 
Posts: 7612
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle