Skip to content

Oracle.DataAccess.dll ODP.NET vs Nuget package -- Trying to connect to Oracle 19 #118

@s3YwCf2ZbfJG4SHAfjQMAjtsf

Description

I hope this is ok to post here, it isn't about the Managed Data Access libraries

Oracle DataAccess DLL version information:

https://www.nuget.org/packages/Oracle.DataAccess.x86.4/
DLL version 4.112.3.0

Oracle 12 Client (32-bit) ODP.NET folder
DLL Version 4.122.1.0

Oracle 19 client (32-bit) ODP.NET folder
DLL Version 4.122.19.1

We have been upgrading x86 C# web application to .Net 4.8 and Oracle 19, that was previously using the nuget version of the Oracle DataAccess. The last update to the nuget package is May 2016 and of course doesn't work with Oracle 19. It appears as though we should use the ODP.NET Oracle 19 version. However, we are getting an error trying to make connections and build connection strings:

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

at Oracle.DataAccess.Client.OpsInit.CheckVersionCompatibility(String version)
at Oracle.DataAccess.Client.OracleInit.Initialize()
at Oracle.DataAccess.Client.OracleConnectionStringBuilder..cctor()

The type initializer for 'Oracle.DataAccess.Client.OracleConnectionStringBuilder' threw an exception.

I am not sure why the error is happening. It is rendering in 32 bit IIS express (development wise) and everything seems to fine until we get the OracleConnectionStringBuilder as in above.

I see the version numbering is different between the ODP.NET and Nuget versions of the Oracle.DataAccess, not sure if it is suggesting that there are different rules with the ODP.NET version.


On another note, I tried the Oracle.ManagedDataAccess nuget library, The Connections and ConnectionStrings work fine, but we are using UDTs extensively to pass to oracle table parameters in procedures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions