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

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

Postby 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)
======================================================================
luiz.cherpers
 
Posts: 1
Joined: Fri 01 Sep 2017 17:43

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

Postby 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.
Shalex
Devart Team
 
Posts: 7659
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect Universal