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
Database Application Development
Windows and .NET
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Dec 11, 2012 6:56 AM by
cast 'ManagedDataAccess.Client' to 'DataAccess.Client'
Dec 11, 2012 5: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 6:56 AM
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.