oracle-client

How to fix “The provider is not compatible with the version of Oracle client”?

两盒软妹~` 提交于 2019-12-04 07:16:21
We're using the Oracle.DataAccess.dll assembly version 2.102.2.20 (32 bit). I deployed our Web API application to IIS and tried openning and closing a connection: private static void CheckConnectionUsingOracleClient(string connection) { var logger = DiContainer.Resolve<ILogger>(); try { logger.LogInfo("Trying to connect to " + connection); // check whether you can connect to the shop using Oracle.DataAccess using (var cnn = new Oracle.DataAccess.Client.OracleConnection(connection)) { cnn.Open(); cnn.Close(); } logger.LogInfo("Succeeded to connect to " + connection); } catch (System.Exception