Not convert an object of type 'Devart.Data.Universal.OraDirectProvider' to type 'Devart.Data.Universal.IUniProvider'

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for universal data access
Post Reply
luiz.cherpers
Posts: 1
Joined: Fri 01 Sep 2017 17:43

Not convert an object of type 'Devart.Data.Universal.OraDirectProvider' to type 'Devart.Data.Universal.IUniProvider'

Post by luiz.cherpers » Fri 01 Sep 2017 17:53

You can not convert an object of type 'Devart.Data.Universal.OraDirectProvider' to type 'Devart.Data.Universal.IUniProvider'.
dotconectuniversal 3.60pro version
.net framewok 4.7
windows server 2012 r2

ERROR:
DataTable _DataTable = Connection.Select(sqlBuilder.ToString());
//code implementation method
public static System.Data.DataTable Select(string sqlQuery)
{
DataTable _DataTable = new DataTable();
using (_connection = new UniConnection(GetConnectionString()))
{
_connection.Open();
UniCommand _command = new UniCommand(sqlQuery, _connection);
UniDataReader _DataReader = _command.ExecuteReader();
if (_DataReader != null && _DataReader.HasRows){
_DataTable.Load((IDataReader)_DataReader);
}
}
return _DataTable;
}
======================================================================
Source: Db.Fontes.Data.Access.Tb_Conta
Message: Can not convert an object of type 'Devart.Data.Universal.OraDirectProvider' to type 'Devart.Data.Universal.IUniProvider'.
Trace: in Devart.Data.Universal.ProviderManager.a (bj A_0)
in Devart.Data.Universal.ProviderManager.GetProvider (String providerName)
in Devart.Data.Universal.n.a (String A_0, Boolean A_1)
in Devart.Data.Universal.UniConnection.set_ConnectionString (String value)
in Devart.Data.Universal.UniConnection..ctor (String connectionString)
in Db.Utils.DbFontesConnection.Select (String sqlQuery)
======================================================================

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Not convert an object of type 'Devart.Data.Universal.OraDirectProvider' to type 'Devart.Data.Universal.IUniProvider'

Post by Shalex » Wed 06 Sep 2017 19:09

We cannot reproduce the issue with the newest (v3.70.1455) build of dotConnect Universal. Please upgrade.

If this doesn't help, specify the value of your Provider connection string parameter.

Post Reply