BadImageFormatException. This will occur when running in 64 bit mode with the 32 bit Oracle client components installed

后端 未结 21 2046
南方客
南方客 2020-11-21 13:30

I am getting this error while on of my .Net application are trying to make a connection to oracle database.

The error says that This problem will

21条回答
  •  有刺的猬
    2020-11-21 13:54

    I had this error in my DNN application installed on Windows 2012 R2. It's using some 32 bit dll and only Oracle.DataAccess.dll x32 was working. My solution is:

    1. Uninstall old Oracle Client \ ODAC.
    2. Install Oracle 11 Client x32.
    3. Install Oracle ODAC 12 x64.
    4. Check IIS Application Pool (Classic version) has option "Enable 32-Bit Applications" = true.

提交回复
热议问题