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.

Oracle.ManagedDataAccess 21.3 support for .Net 5 and EF6

User_221RDAug 25 2021

Hi, my company is looking to upgrade to .Net 5 for our .Net Framework 4.7.2 application. However, we do not want to upgrade our ODP.Net and EF6 to ODP.Net Core and EF Core. Doing so, we encountered the following error when we tried to target 'net5.0-windows' and keeping ODP.Net and EF6:
Unhandled exception. System.TypeLoadException: Could not load type 'System.Security.Principal.WindowsImpersonationContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at OracleInternal.ConnectionPool.PoolManager`3.CreateNewPRThreadFunc(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Does this mean we have no choice to upgrade ODP.Net Core and EF Core if we want to upgrade our application to .Net 5 or there are other ways we are not aware of?
Thank you for any help in advance!

Comments

Processing

Post Details

Added on Aug 25 2021
2 comments
6,511 views