I need to refer several 32-bit dlls in my project. Basically, it contains several WCF services that connect to Oracle DB and do some CRUD operations. When I deploy my solution into IIS and set Application pool to
Enable 32-bit Applications to False, getting this exception...
System.BadImageFormatException: Could not load file or assembly 'PasswordValidator' or one of its dependencies. An attempt was made to load a program with an incorrect format
Enable 32-bit Applications to True, getting this exception...
The 'OraOLEDB.Oracle' provider is not registered on the local machine.
The connection string is:
Provider = OraOLEDB.Oracle; Data Source =lsdb; User ID =ls_Data; Password =oracle
I have installed 64-bit Oracle client, this is the problem. When I install 32-bit Oracle client, the issue is resolved. How to resolve this by having 64-bit Oracle client.
I tried to build the project by setting platform target to 64-bit, any CPU, x86. No use. If I set to 64, my DLL itself can't be loaded if I set Enable 32-bit to True (of course, expected behavior).