Page 1 of 1

Assemby for EntityFramework 5.0 not found (working with EF6)

Posted: Mon 22 Jun 2015 15:05
by christian_bertram
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 ?

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

Posted: Tue 23 Jun 2015 07:15
by Shalex
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