If the 32-bit oracle client component is installed in 64-Bit mode

Source: Internet
Author: User
Today, I want to write a program. The environment is win7vs2008oracle. First, you must ensure that you can connect to the database. Check that the code is correct, but take it directly. Error: "BadImageFormatException is thrown when you try to load the Oracle client database. If you run the 32-bit Oracle client in 64-Bit mode

Today, I want to write a program. The environment is win7 vs2008 oracle. First, you must ensure that you can connect to the database. Check that the code is correct, but take it directly. Error: "BadImageFormatException is thrown when you try to load the Oracle client database. If you run the 32-bit Oracle client in 64-Bit mode

Today, I want to write a program. The environment is win7 + vs2008 + oracle. First, we must ensure that we can connect to the database. Check that the code is correct, but take it directly. Error:

"BadImageFormatException is thrown when you try to load the Oracle client library. If the 32-bit Oracle client component is installed and runs in 64-Bit mode, this problem occurs"

Find a solution to the problem on the Internet

Right-click your project and choose properties. In the displayed window, select generate and view "Platform". In the drop-down list, select x86.

Then OK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.