EF Oracle provider Exception

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Luigi68217
Posts: 2
Joined: Wed 16 Feb 2022 11:11

EF Oracle provider Exception

Post by Luigi68217 » Wed 16 Feb 2022 11:16

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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: EF Oracle provider Exception

Post by Shalex » Wed 16 Feb 2022 16:23

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.

Luigi68217
Posts: 2
Joined: Wed 16 Feb 2022 11:11

Re: EF Oracle provider Exception

Post by Luigi68217 » Wed 16 Feb 2022 17:09

Hi thanks it works now.

Post Reply