Assemby for EntityFramework 5.0 not found (working with EF6)

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
christian_bertram
Posts: 16
Joined: Mon 22 Jun 2015 08:38

Assemby for EntityFramework 5.0 not found (working with EF6)

Post by 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 ?

Shalex
Devart Team
Posts: 8074
Joined: Thu 14 Aug 2008 12:44

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

Post by 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

Post Reply