This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.
阿新 • • 發佈:2017-10-19
safe bit min bad exc oci tex 應用 exceptio at System.Data.OracleClient.OCI.DetermineClientVersion()
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. ---> System.BadImageFormatException: 試圖加載格式不正確的程序。 (Exception from HRESULT: 0x8007000B)
at System.Data.Common.UnsafeNativeMethods.OCILobCopy2(IntPtr svchp, IntPtr errhp, IntPtr dst_locp, IntPtr src_locp, UInt64 amount, UInt64 dst_offset, UInt64 src_offset)
解決方案:
應用程序池 --》選擇對應程序池 右鍵 高級--設置啟用32位應用程序為True
This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.