連接到Oracle我嘗試連接到Oracle從我的C#程序問題,從我的C#的WinForm程序
11.2.0 64位和我得到這個錯誤:
Attempt to load Oracle client libraries threw BadImagFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.
我對連接到Oracle代碼
Conect = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=" + IP + ")(PORT=" + PORT + ")))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=" + Server + ")));User Id=" + UID + ";Password=" + PASS + ";";
Conn = new OracleConnection(Conect);
Conn.Open();
和我的程序在X86編譯(在64位工作)
我需要什麼牛逼o在我的C#程序中下載或更改?
在此先感謝
你應該發佈你的代碼,否則我們無法幫你改變什麼。 – xdumaine 2011-03-21 20:13:26