Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Can't connect to oracle in .net core web api

50da4056-a093-4c14-8663-8396279e223cAug 14 2018 — edited Aug 15 2018

I have the following code:

using(OracleConnection conn = new OracleConnection(connectionstring))

{

     var test = connection.Query<dynamic>("SELECT * FROM TABLE1")

}

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

Why do I get this error? I have the latest beta installed.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 12 2018
Added on Aug 14 2018
7 comments
5,362 views