Oracle.dataaccess [verified] -

try

gacutil /i C:\oracle\product\19.0.0\client_1\odp.net\bin\4\Oracle.DataAccess.dll Use code with caution.

tx.Rollback(); throw;

using (OracleConnection conn = new OracleConnection(connString))

// Create a new Oracle connection using (OracleConnection connection = new OracleConnection(connectionString)) oracle.dataaccess

The installer automatically places Oracle.DataAccess.dll into the GAC ( C:\Windows\Microsoft.NET\assembly\... ). If performing a silent, xcopy deployment, administrators must manually execute the Windows Global Assembly Cache Utility:

Console.WriteLine("Connected to Oracle Database"); try gacutil /i C:\oracle\product\19

using (OracleConnection conn = new OracleConnection(connStr))