Page 1 of 1

EF Oracle provider Exception

Posted: Wed 16 Feb 2022 11:16
by Luigi68217
Hi,
I'm using DevArt Oracle EF provider from a NET 6 application using Entity Framework 6.4.
This is absolutely compatible because EF 6.4 support netstandard 2.1.
When running application I get the following exception:

System.TypeLoadException: 'Could not load type 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'

Please need help on it
Thanks in advance
Luigi

Re: EF Oracle provider Exception

Posted: Wed 16 Feb 2022 16:23
by Shalex
With .NET 6 project, please use https://www.nuget.org/packages/devart.data.oracle.ef6 instead of the Devart.* assemblies shipped with the provider installation ( C:\Program Files (x86)\Devart\dotConnect\Oracle\ ).

If this doesn't help, send us a small test project for reproducing the issue via our contact form.

Re: EF Oracle provider Exception

Posted: Wed 16 Feb 2022 17:09
by Luigi68217
Hi thanks it works now.