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!

Oracle.ManagedDataAccess.Core Failure during SSL handshake

Martin WittersApr 29 2022

I have a .NET Framework application that I am porting to .NET Core/6. The application needs to connect to various remote databases, sometimes using an Oracle wallet for authentication. I include the wallet location in the connection string as in this example:
Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST=oratns-prod.customer1.com)(PORT=3535))(SECURITY=(MY_WALLET_DIRECTORY=C:\Oracle\Wallets\Customer1))(CONNECT_DATA=(SERVICE_NAME=PROD.world))); User Id = user1; Password = password1;
This connection works in the .NET Framework version of the code, but fails in the .NET 6 version with the following error:
Oracle.ManagedDataAccess.Client.OracleException (0x80004005): Network Transport: SSL failure in parsing wallet location ---> OracleInternal.Network.NetworkException (0x80004005): Network Transport: SSL failure in parsing wallet location ---> Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The system cannot find the file specified.
The wallet directory contains four files: cwallet.sso, cwallet.sso.lck, ewallet.p12, and
ewallet.p12.lck
I'm not sure which file it's looking for that is not found. I am attaching trace files in case they can provide some insight to the issue.
W3WP.EXE_PID_6904_TID_83_DATE_2022_04_27_TIME_14_07_21_464117.txt (16.36 KB)W3WP.EXE_PID_6904_TID_84_DATE_2022_04_27_TIME_14_07_21_468455.txt (5.44 KB)

This post has been answered by Alex Keh-Oracle on May 5 2022
Jump to Answer
Comments
Post Details
Added on Apr 29 2022
4 comments
4,792 views