32位C#程序 连接64位ORACLE数据库 VS2008 生成32位程序,安装在64位服务器上,调用System.data.oracleclient oracleConn = new OracleConnection(); oracleConn.ConnectionString = sqlDbConnectionString; try { oracleConn.Open(); //粗步估计是此出错 } catch (Exception ex) { MessageBox.Show(ex.ToString()); } 出错信息:System.InvalidOperationException: 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.