BadImageFormatException is raised when attempting to load the Oracle client library. This problem occurs if you are running in 64-bit mode with the 32-bit Oracle client component installed. (encountered this problem on-line check down to save it)

Source: Internet
Author: User

When one is running on a 64-bit platform. NET application attempts to invoke a DLL that does not support 64-bit execution, this exception occurs. If the application is generated in an unspecified platform (for example, "any CPU"), it will run in the operating system-based 64-bit mode, which can cause this problem. To solve this problem, you can either make the application run in 32-bit mode by specifying to compile for the X86 solution platform, or make the program run on a 64-bit operating system-based WOW64 subsystem and license 32-bit DLLs.

  1. Click on the solution you want to run--right----properties, select Build---platform, and change to x86. (both vs2008 and vs2010 are suitable)
Related Article

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.