我需要在我的项目中引用 几个32位dll 。基本上,它包含几个连接到 Oracle DB 的WCF服务,并执行一些CRUD操作。当我将我的解决方案部署到IIS并将应用程序池设置为
时启用32位应用 至 错误 ,获取此异常......
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
启用32位应用 至 True ,获取此异常......
The 'OraOLEDB.Oracle' provider is not registered on the local machine.
连接字符串是:
Provider = OraOLEDB.Oracle; Data Source =lsdb; User ID =ls_Data; Password =oracle
我已安装 64位Oracle客户端 ,这是 问题 。当我安装 32位Oracle客户端 时,问题是 已解决 。如何通过 64位Oracle客户端 解决此问题。
我尝试通过将平台目标设置为 64位,任何CPU,x86 来构建项目。没用如果我设置为64,如果我将启用32位设置为True(当然,预期的行为),我的DLL本身就无法加载。