WebService throws BadImageFormatException when attempting to load the Oracle client library. This issue occurs if you run the 32-bit Oracle client component that is installed

Source: Internet
Author: User

In recent projects, the application server migrated to another server, the operating system was upgraded to WIN10, the application publishing site and the WebService site in IIS were configured.

The client program called WebService error:

"BadImageFormatException is raised when attempting to load the Oracle client library. This issue occurs if you are running with the 32-bit Oracle client component installed. "

Write a console program, run the test on this machine, or this problem occurs:

At first, I thought it was an Oracle client problem, reinstalling another version of the client, running the program or this error occurs.

The final outcome method is to set the application pool of the WebService Web site for the DCT call.
"Enable 32-bit applications" is true

The steps are as follows:
1. Select the application pool corresponding to the site, right-Advanced settings:

2. Set "Enable 32-bit application" to True, click OK:

WebService throws BadImageFormatException when attempting to load the Oracle client library. This issue occurs if you run the 32-bit Oracle client component that is installed

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.