1 Reply Latest reply: Dec 11, 2012 6:56 AM by Tridus RSS

    cast 'ManagedDataAccess.Client' to 'DataAccess.Client'

    979221
      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|
      res://*/Model1.ssdl|
      res://*/Model1.msl";


      new Entities1(myConn.ToString());

      Suggestions?