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