1

I have the following code:

        using (OracleConnection connection = new OracleConnection(_connectionString.Value.Mix_DB))
        {
            var fish = connection.Query<dynamic>("SELECT Username, Password FROM Orderform_Users");
        }

When I run the code, 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'.'

I have downloaded the latest version of ODP.NET (Oracle Data Provider for .NET Core 12.2 Beta 3)

Anyone who can guide me into the right direction with this problem?

8
  • The ODP.Net provider for .net core is still in beta, are you using the correct version? (oracle.com/technetwork/topics/dotnet/downloads/…) Commented Aug 14, 2018 at 6:44
  • @jeroenh: Yes :) Commented Aug 14, 2018 at 6:55
  • @jeroenh what is the correct version? Im using the latest, which is Beta 3? Commented Aug 14, 2018 at 8:12
  • that should work I guess (haven't tried it). Maybe best to provide complete example showing the problem... Commented Aug 14, 2018 at 10:40
  • @jeroenh: This is the complete example.. Commented Aug 14, 2018 at 11:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.