Hi All,
My Machine config : R2 windows 2008 server , 64 bit , Microsoft .NET framework 4.0, VS 2010 C# [application]
Premise : Application is C# service. As practie I build the code in Release mode a and keeping the PlatForm as 'ANY CPU'. We have a Oracle CLeint 64 bit Installed in the server to contact Oracle DB.So from last 4-5 years tehre was no issues of compatibility of .DLL and Oracle Client.
Issue: But suddenly I git a issue as "Error Uploading to SQL DB: datatable row count was: 1, Error is : 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".
Solution :I specifically build all dlls in x86 Platform version. And then I copied the System.Data.OracleClient.dll from Microsoft\Frmakeowrk folder into the Framework64 folder in C:, and then it supported the environment application worked.
Please help me in this regard let me know how 'ANY CPU' dlls were not compatible in 64 bit Oracle and also 64 bit machine but specifically built x86 worked.
Also Please help me in raising Service Request regarding the same in Microsoft VS Portal, as it is really important from business prospective.
Thanks in advance.