I am trying to use a licensed version
I have a Full framework 461 solution where I have one repository class library that is setup with the new SDK Csproj style but with <TargetFramework>net461</TargetFramework>
I am then trying to add the license key attribute to our connectionstring for our user [email protected]
So it looks something like
User Id=xxx;Password=xxxx;Server=xxx;Sid=xxx;Direct=True;Persist Security Info=True;License Key=*long key*
I have installed <PackageReference Include="Devart.Data.Oracle.EFCore" Version="9.7.734" />
But when I run it I get “Unknown connection string parameter 'License Key'”
How am I supposed to use this correctly?
Currently this aspnet web api solution already have an old integration to Oracle with the old EF and the wierd thing is that when I deploy my current solution without the License Key' in the connectionstring it works even though I havent installed the devart trial driver on those machines, but those machines, can it just use the same license as those drivers?
How am I supposed to use the license with my ef core
-
- Posts: 4
- Joined: Mon 27 Mar 2017 14:01
Re: How am I supposed to use the license with my ef core
The current implementation of dotConnect for Oracle includes two sets of assemblies for EF Core:
1) the .NET Framework Devart.* assemblies which are shipped with installation:
* assemblies are created in C:\Program Files (x86)\Devart\dotConnect\Oracle\ , GAC 2.0 (C:\Windows\assembly\GAC_MSIL\), GAC 4.0 (C:\Windows\Microsoft.NET\assembly\GAC_MSIL\)
* licensing approach is described at https://www.devart.com/dotconnect/oracl ... nsing.html
2) 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
A solution is to reinstall dotConnect for Oracle in your development environment and select the "Do not install assemblies in the GAC" option in Setup Wizard.
1) the .NET Framework Devart.* assemblies which are shipped with installation:
* assemblies are created in C:\Program Files (x86)\Devart\dotConnect\Oracle\ , GAC 2.0 (C:\Windows\assembly\GAC_MSIL\), GAC 4.0 (C:\Windows\Microsoft.NET\assembly\GAC_MSIL\)
* licensing approach is described at https://www.devart.com/dotconnect/oracl ... nsing.html
2) 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
With Target framework=.NET Framework, the first location CLR looks for the assembly is GAC. So, your development environment works with .NET Framework Devart.* assemblies (shipped with installation) instead of .NET Standard Devart.* assemblies (downloaded from NuGet).<TargetFramework>net461</TargetFramework>
[...]
when I run it I get “Unknown connection string parameter 'License Key'”
A solution is to reinstall dotConnect for Oracle in your development environment and select the "Do not install assemblies in the GAC" option in Setup Wizard.