Question

I have a SSRS report using 32Bit Oracle client build in BIDS 2008, Report is running fine in BIDS (VS 2008) but when deployed to Report Manager on Win2k3 64 Bit Server it is failing with the following error

"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."

I have gone through several articles which are suggesting to Enable IIS to 32Bit using csscript Enable32Biton64 'true' and aspnet_regiis-i, but problem with this is I have other application that needs 64-bit capabilities so cannot do it.

Please suggest me the way to do it .TIA.

Was it helpful?

Solution

Install the Oracle 64-bit client tools on the server, e.g.

http://www.oracle.com/technetwork/topics/winx64soft-089540.html

OTHER TIPS

This is the second time I configure a similar server, and the second time I spend hours figuring this one out. If for nobody else, I am writing this for the future me. This is for a Windows Server 2012 R2 64bit, 8GB RAM, 300+GB HDD, Intel Xeon CPU E5620 @ 2.40GHz, that is running Microsoft SQL Server Reporting Services 2012 64bit and IIS 7.0 with web applications that use the Oracle Client 32bit connection System.Data.OracleClient

  1. Install the 64bit client
  2. Change the name of the Oracle inventory directory @ "C:\Program Files\Oracle" to "C:\Program Files\Oracle64"
  3. Restart computer and test for connection from SSRS to Oracle
  4. Install the 32bit client and specify a different location for its home directory
  5. Restart computer and test connection from SSRS to Oracle and from Web Applications to Oracle

I hope this helps my future self and others :)

Please isntall 64 bit oracle, copy tnsnames.ora and reboot the server, I had same issue and it worked fine after doing it.

I had the same problem running from SSRS 2014. Tried to install SSRS 2016 (version 14.0.609.142), same problem. Test connection works OK, but when I want to go on with the configuration I get the message

This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed

I tried to configure an ODBC connection, and found out that the reporting server only looked in the 32-odbc servers.

Next I installed the newest Oracle 32-bit client (12.2.0.1.0). Then everything worked fine!!

So even though the error message asks for a 64 driver instead of a 32 bit driver the opposite was actually the case.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top