I have to set a few projects in our VS 2005 solution to build to x64 only. The 3rd party software the projects are using requires it.
The Oracle DLL (System.Data.OracleClient.dll) the project is referencing reside in Windows\Microsoft.NET\Framework\v2.0.57027 which causes issues when connecting to oracle from a 64bit project.
Is there a reason why Microsoft is not using the Framework64\v2.0.50727 directory to reference the System.Data.OracleClient.dll? The project is forced to build to x64, so logically one would think it would use the Framework64 references.
The error I'm getting is:
System.InvalidOperationException : Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed. ----> System.BadImageFormatException : An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Whenever I go to add a reference, it's only referencing the non-64bit DLL's. Will I need to hard reference the 64bit System.Data.OracleClient.dll?
Thanks.