Trying 30 day trial. Get "Devart.Common.LicenseException: Feature is not supported."
Posted: Wed 20 Sep 2017 13:05
I have created a .NET Core console program with the below code:
I have added a licenses.config file to the project and set the "Copy to Output Directory" to True. It has the following two lines:
I have added a licenses.licx file to the project with this single row content:
I use the .NET Core 1.1 target runtime. The program works correctly on Windows. When I copy the published folder to a docker container running CentOS Linux I get the following error:
What is causing the "Devart.Common.LicenseException: Feature is not supported" error? My goal is to evaluate if our organisation can use dotConnect for Oracle on a CentOS/redhat docker container.
Code: Select all
using System;
using Devart.Data.Oracle;
using System.Diagnostics;
namespace consoledevart
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Before");
string connStr = "Data Source = oraclexe; User ID = testuser; Password = secret;";
using (OracleConnection conn = new OracleConnection(connStr))
{
conn.Open();
var cmd = conn.CreateCommand();
cmd.CommandText = "select * from user_tables";
var reader = cmd.ExecuteReader();
reader.Read();
string col = reader.GetString(0);
Console.WriteLine("From view: " + col);
}
Console.WriteLine("After");
}
}
}
Code: Select all
consoledevart.dll
consoledevart.exe
Code: Select all
Devart.Data.Oracle.OracleConnection, Devart.Data.Oracle
Code: Select all
[root@2018ac6b9ced 1.1.2]# pwd
/samsserver/shared/Microsoft.NETCore.App/1.1.2
[root@2018ac6b9ced 1.1.2]# ./dotnet /samsserver/PublishOutput/consoledevart.dll
Before
Unhandled Exception: Devart.Common.LicenseException: Feature is not supported.
at d.le.clv.Vld(Int32 pe)
at Devart.Data.Oracle.OracleInternalConnection..ctor(b0 connectionOptions, OracleInternalConnection proxyConnection)
at Devart.Data.Oracle.bz.a(g A_0, Object A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionFactory.a(DbConnectionPool A_0, g A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionPool.a(DbConnectionBase A_0)
at Devart.Common.DbConnectionPool.GetObject(DbConnectionBase owningConnection)
at Devart.Common.DbConnectionFactory.b(DbConnectionBase A_0)
at Devart.Common.DbConnectionClosed.Open(DbConnectionBase outerConnection)
at Devart.Common.DbConnectionBase.Open()
at Devart.Data.Oracle.OracleConnection.Open()
at consoledevart.Program.Main(String[] args)
Aborted
[root@2018ac6b9ced 1.1.2]#