2 Replies Latest reply: Dec 14, 2012 5:45 AM by 979432 RSS

    ORA-20100: System.BadImageFormatException. The format of the file is invali

    979432
      Hello,

      I am using Oracle 11G on a Windows Server 2008 R2 Enterprise, the Oracle version:
      Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
      PL/SQL Release 11.2.0.1.0 - Production
      CORE 11.2.0.1.0 Production
      TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
      NLSRTL Version 11.2.0.1.0 - Production

      On another machine with Visual Studio 2010 and Windows Server 2012 x64, I have installed the ODAC112012.
      I could succesfully deploy the new .dll on the Oracle machine, but while I am trying to run the function I am getting the exception:
      ORA-20100: System.BadImageFormatException. The format of the file is invalid.

      After investigation I found Oracle troubleshooting entry:
      ORA-20100: System.BadImageFormatException. The format of the file is invalid.
      Cause: The .NET Assembly is not in the proper format.
      Action: Fix the .NET assembly format that contains the .NET stored procedures or functions. You need to recompile the .NET assembly.

      Can anybody explain what does it mean to change the format of the assembly or any suggestion on this issue?

      Many thanks,
      Wojtek