System.BadImageFormatException An attempt was made to load a program with an incorrect format

后端 未结 6 1320
情话喂你
情话喂你 2020-11-30 03:44

I\'m writing a plug-in for another program that is based on a public .NET API. Typically these plugins are made by creating a class library DLL that references the API assem

6条回答
  •  广开言路
    2020-11-30 04:06

    It's possibly a 32 - 64 bits mismatch.

    If you're running on a 64-bit OS, the Assembly RevitAPI may be compiled as 32-bit and your process as 64-bit or "Any CPU".

    Or, the RevitAPI is compiled as 64-bit and your process is compiled as 32-bit or "Any CPU" and running on a 32-bit OS.

提交回复
热议问题