E
eclypse
After migrating our application to .NET 2.0 we're getting the following
error message
Unable to cast object of type 'Oracle.DataAccess.Client.OracleCommand'
to
type 'System.Data.Common.DbCommand'
I'm using Oracle.DataAccess.Client.
I'm getting the same message whether I'm using ODP.NET 9.2 or 10
This is the code we're using :
Dim tblSchema As New DataTable()
Dim adpAdapter As New OracleDataAdapter(pSqlString, DbConnection)
adpAdapter.FillSchema(tblSchema, SchemaType.Source)
Fillschema causes the error
This code used to work fine with .NET 1.1.
Thanks,
Oz
error message
Unable to cast object of type 'Oracle.DataAccess.Client.OracleCommand'
to
type 'System.Data.Common.DbCommand'
I'm using Oracle.DataAccess.Client.
I'm getting the same message whether I'm using ODP.NET 9.2 or 10
This is the code we're using :
Dim tblSchema As New DataTable()
Dim adpAdapter As New OracleDataAdapter(pSqlString, DbConnection)
adpAdapter.FillSchema(tblSchema, SchemaType.Source)
Fillschema causes the error
This code used to work fine with .NET 1.1.
Thanks,
Oz