DevArt with Oracle throws error for EF 6

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
anand123
Posts: 17
Joined: Thu 30 Jan 2014 08:58

DevArt with Oracle throws error for EF 6

Post by anand123 » Thu 30 Jan 2014 09:27

DevArt worked with EF5, after installing EF6.0.1, got following error.

Error Info:
The 'Instance' member of the Entity Framework provider type 'Devart.Data.Oracle.Entity.OracleEntityProviderServices, Devart.Data.Oracle.Entity, Version=8.2.80.0, Culture=neutral, PublicKeyToken=09af7300eec23701' did not return an object that inherits from 'System.Data.Entity.Core.Common.DbProviderServices'. Entity Framework providers must inherit from this class and the 'Instance' member must return the singleton instance of the provider. This may be because the provider does not support Entity Framework 6

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  </configSections>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  </startup>
  <connectionStrings><!--<add name="Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=Oracle.DataAccess.Client;provider=Oracle.DataAccess.Client;provider connection string="USER ID=SYSADM;PASSWORD=SYSADM;DATA SOURCE=ORCHDB17"" providerName="System.Data.EntityClient" />-->
  <add name="Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=Devart.Data.Oracle;provider connection string="user id=SYSADM;password=SYSADM;server=10.87.2.57;home=OraHome112;direct=True;sid=ORCHDB17"" providerName="System.Data.EntityClient" /><add name="Entities1" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=Devart.Data.Oracle;provider connection string="user id=SYSADM;password=SYSADM;server=10.87.2.57;direct=True;sid=ORCHDB17"" providerName="System.Data.EntityClient" /></connectionStrings>
  <entityFramework>
    <providers>
      <provider invariantName="Devart.Data.Oracle" type="Devart.Data.Oracle.Entity.OracleEntityProviderServices, 
      Devart.Data.Oracle.Entity, Version=8.1.26.6, Culture=neutral, PublicKeyToken=09af7300eec23701" />
    </providers>
  </entityFramework>
</configuration>

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: DevArt with Oracle throws error for EF 6

Post by Shalex » Fri 31 Jan 2014 14:46

Please replace Version=8.1.26.6 with Version=8.2.80.6 in your *.config and try again.

anand123
Posts: 17
Joined: Thu 30 Jan 2014 08:58

Re: DevArt with Oracle throws error for EF 6

Post by anand123 » Tue 11 Feb 2014 07:52

it works. thanks

Post Reply