Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
Database Application Development
Windows and .NET
This discussion is archived
on Dec 11, 2012 12:56 PM by Tridus
cast 'ManagedDataAccess.Client' to 'DataAccess.Client'
Dec 11, 2012 11:21 AM
I get the error "Unable to cast object of type 'Oracle.ManagedDataAccess.Client.OracleConnection' to type 'Oracle.DataAccess.Client.OracleConnection'." when try to do something like
EntityConnectionStringBuilder myConn = new EntityConnectionStringBuilder();
myConn.Provider = "Oracle.ManagedDataAccess.Client";
myConn.ProviderConnectionString = "user id=****;password=*****;DATA SOURCE=****:1521/****";
myConn.Metadata = @"res://*/Model1.csdl|
This content has been marked as final.
Show 1 reply
Re: cast 'ManagedDataAccess.Client' to 'DataAccess.Client'
Dec 11, 2012 12:56 PM
in response to
If you have an .edmx model, there's a reference in it to Oracle.DataAccess near the top. You need to change that to Oracle.ManagedDataAccess in order to use the managed client with it.