Current implementation of dotConnect for Oracle includes two sets of assemblies:
-> the .NET Framework Devart.* assemblies which are shipped with installation:
* assemblies are created in
C:\Program Files (x86)\Devart\dotConnect\Oracle\ (by default)
* licensing approach is described at
https://www.devart.com/dotconnect/oracl ... nsing.html
-> the .NET Standard (.NET Core) Devart.* assemblies which are available via NuGet:
* you can download packages from
https://www.nuget.org/packages/devart.d ... cle.efcore
* licensing approach is described at
https://www.devart.com/dotconnect/oracl ... ndard.html
cbiegner wrote:I get an error Devart.Common.LicenseException: Feature is not supported.
1. The error says that .NET Standard runtime cannot find the license key.
Please get your License Key using credentials (URL, account name, and password) that were sent to you after the purchase of our product, then press View in the "Activation Key" column against the product dotConnect for Oracle.
Add "License Key=your_value_here;" to your connection string.
cbiegner wrote:I just built a simple Windows Console Application (.NET Framework)
2. With Target framework=.NET Framework (not .NET Core), CLR looks for the referenced assembly in the GAC first (!).
So:
* CLR finds .NET Framework Devart.* assemblies (they are copied to GAC by installation) and uses them in your dev env
* there are no .NET Framework Devart.* assemblies in GAC in your prod env, and CRL employs .NET Core Devart.* assemblies downloaded from NuGet
Run your project in the debug mode, navigate to Debug > Windows > Modules and check Path values of Devart.* assemblies loaded in the process of your application:
* .NET Framework Devart.* assemblies are loaded from
C:\Windows\assembly\GAC_MSIL\
* .NET Core Devart.* assemblies are loaded from
C:\Users\xxxxx\.nuget\packages\ or the
\packages\ folder of your project
A solution would be:
a) in dev env, remove Devart.* and policy.*.Devart.* files/folders from GAC 2.0 (
\Windows\assembly\GAC_MSIL\) and GAC 4.0 (
\Windows\Microsoft.NET\assembly\GAC_MSIL\). For this, use some file manager like
https://x-diesel.com/
b) add "License Key=your_value_here;" to your connection string