Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do you register the ODP.NET provider in the entityFramework section of the application config fi

Zena2001Jan 12 2014 — edited Apr 1 2014

Using VisualStudio2013, just upgraded to ODAC 12c Release 2 and also upgraded to EntityFramework 6.0.2 (from ODAC 12c Release 1 and EF5).  Receiving following error:

An exception of type 'System.Data.Entity.Core.MetadataException' occurred in mscorlib.dll but was not handled in user code

Additional information: Schema specified is not valid. Errors:

GGMATDataModel.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.

According to Microsoft, starting with EF6 you need to register the provider in app.config with the following format:  

<entityFramework>
  <providers>
  <provider invariantName="My.Invariant.Name" type="MyProvider.MyProviderServices, MyAssembly" />
  </providers>
</entityFramework>

I tried the following but still got same error.  Any ideas?

<entityFramework>
  <providers>
  <provider invariantName="Oracle.ManagedDataAccessClient" type="Oracle.ManagedDataAccessClient.OracleClientFactory, Oracle.ManagedDataAccessClient" />
  </providers>
</entityFramework>

This post has been answered by Alex Keh-Oracle on Jan 12 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2014
Added on Jan 12 2014
5 comments
18,893 views