Click here to Skip to main content
Click here to Skip to main content

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

By , 19 Dec 2010
 

Problem Statement

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

Reason 1#

There could be a possibility that Oracle Client 64 bit(drivers) is not installed properly on Windows 2008 r2. This improper installation of Oracle Client doesn't affect connectivity with Oracle for .NET Windows or Console application. It affects only Web based applications.

Solution

To check whether Oracle Client is installed properly or not, follow the following steps.

  1. Create one UDL file: Create one text file and name it as "conn.udl".
  2. Open conn.udl file. By opening that file, you will see a window as shown below:
  3. Select "Microsoft OLE DB Provider for Oracle" and click on Next button which will take you to the next tab "Connection".
  4. In this Connection tab, Give Database server name, User name and password and click on Test Connection. If all the Credentials are correct and required TNS entry is there in tnsnames.ora file, then it will give a connection successful message as shown below. If this message is coming, then Oracle Client installation is done properly.

Conclusion

Connectivity of ASP.NET With Oracle Client can be because of improper installation of Oracle Client on the server. So this is the basic Check we can do to verify it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Shripad J
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionwhat if there is no option of 'Microsoft OLE DB Provider for Oracle' in the udl file?memberSadaqatullah Noonari25 Dec '12 - 8:44 
GeneralMy vote of 1memberDeulis6 Jul '12 - 9:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 19 Dec 2010
Article Copyright 2010 by Shripad J
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid