使用VS连接Oracle时,提示: "Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed"
环境:VS2015 Oracle 11g 64位 Oracle客户端版本 32位
连接时提示问题:
"Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed"
解决办法:在环境变量Path中添加"C:\Oracle\product\instantclient_12_1\NETWORK\ADMIN;“实际依个人安装情况而定,主要是欺骗VS,使其认为Oracle是32位的
原理不是很清楚,后补