question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue upgrading to Oracle.ManagedDataAccess.Core 2.19.100

See original GitHub issue

Hi, I upgraded the Oracle.ManagedDataAccess.Core package from 2.19.70 to 2.19.100 in my AspNet Core application (.NET Core 3.1) and I encounter this issue:

Error Message: System.TypeInitializationException : The type initializer for ‘OracleInternal.Network.AddressResolution’ threw an exception. ---- System.IO.FileNotFoundException : Could not load file or assembly ‘System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. The system cannot find the file specified. Stack Trace: at OracleInternal.ConnectionPool.PoolManager3.CreateNewPR(Int32 reqCount, Boolean bForPoolPopulation, ConnectionString csWithDiffOrNewPwd, OracleConnection connRefForCriteria, String instanceName, List1 switchFailedInstNames) at OracleInternal.ConnectionPool.OracleConnectionDispenser3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword, OracleConnection connRefForCriteria) at OracleInternal.ConnectionPool.PoolManager3.Get(ConnectionString csWithDiffOrNewPwd, Boolean bGetForApp, OracleConnection connRefForCriteria, String affinityInstanceName, Boolean bForceMatch) at OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword, Boolean bGetForApp, OracleConnection connRefForCriteria, String affinityInstanceName, Boolean bForceMatch) at Oracle.ManagedDataAccess.Client.OracleConnection.Open() at OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword, OracleConnection connRefForCriteria) at Oracle.ManagedDataAccess.Client.OracleConnection.Open() at Oracle.ManagedDataAccess.Client.OracleConnection.Open() at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken) at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken) at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken) at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken) at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken) at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken) at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken) — End of stack trace from previous location where exception was thrown — … ----- Inner Stack Trace ----- at OracleInternal.Network.LDAP…ctor() at OracleInternal.Network.AddressResolution…cctor()

From what I’ve seen on Nuget it doesn’t have System.DirectoryServices.Protocols as a dependency, however, when inspecting the DLL, it looks like the package has references to System.DirectoryServices.Protocols: image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alexkehcommented, Jan 21, 2021

@hiezust It’s an idea, though I don’t believe any other ADO.NET data provider does this, not even Microsoft’s own providers.

How Microsoft decides to break up the .NET Runtime into separate packages does not have hard and fast rules. It could change from release to release based on what MS views as the most commonly used packages.

0reactions
XtremeOwnageDotComcommented, Apr 14, 2023

image

image

image

image

I’d argue this issue was not properly resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Oracle.ManagedDataAccess.Core 2.19.100
This package has at least one vulnerability with high severity. It may lead to specific problems in your project. Try updating the package ......
Read more >
Oracle.ManagedDataAccess.Core 2.19.190 - still having ...
In Oracle.ManagedDataAccess.Core/2.19.170 a fix was made to solve this : "Bug 34322469 - CONNECTION POOL THROWS "CONNECTION REQUEST TIMED ...
Read more >
ODP.Net Driver Throwing Exception on .NET Core 5.0
Installing Oracle.ManagedDataAccess.Core 3.21 fixes the issue completely so no need in unsafe binary serialization.
Read more >
ODP.NET Oracle.ManagedDataAcess random ORA-12570 ...
I was receiving this error in an application exception. There were no more helpful details in the inner exception. Changing the pooling options...
Read more >
Oracle.ManagedDataAccess.Core 2.18.3
Oracle Data Provider for .NET (ODP.NET) Core is an ADO.NET driver that provides fast data access from Microsoft .NET Core clients to Oracle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found