Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Entity Framework provider found for the ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client'

After installing Entity Framework 6.0.1, I keep getting an error

MAXModel.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'Oracle.ManagedDataAccess.Client'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information. (see Figure below)

enter image description here

Before I installed it, it was fine.

I'm using MVC 4.

Thank you. robotron

like image 369
Robotronx Avatar asked Nov 22 '13 11:11

Robotronx


2 Answers

The current version of the Oracle Managed ODP is not compatible with EF 6, learned this the hard way. Use EF 5 instead.

There is a ticket open at oracle support, I can't find it right now though.

EDIT

I got another upvote on this today, so I thought I'd add that the newest version of ODP.net now supports EF 6.

EDIT AGAIN

Since a while back an official ODP.NET entity framework package is available at nuget (link)

like image 73
flindeberg Avatar answered Sep 18 '22 17:09

flindeberg


Try to use ODAC 12c Release 3 which includes support for Entity Framework 6 Code First and Code First Migrations; NuGet, .NET Framework 4.5.2; and ODP.NET, Managed Driver XML DB. As per

http://www.oracle.com/technetwork/topics/dotnet/whatsnew/index.html

like image 33
Wasef Anabtawi Avatar answered Sep 21 '22 17:09

Wasef Anabtawi