Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
System.BadimageformatException
#6
From the Argon 2 page:

You should explicitly specify in your solution using the configuration manager whether to build your solution for x86 or x64 and not use the default "Any CPU". You may get an error at runtime if the incorrect DLL is used because you specified your platform as "Any CPU".

So it would seem somewhere in your deployments the x86/x64 of one of the dependent assemblies is not matching the .NET hosting environment.

You will need to compile your Delphi app as x86 or x64 to control which version of the .NET framework is used to host. If you are using x86 Delphi compilation it cannot load any explicit x64 .NET assemblies and vice versa. You may need to also compile your assembly explicitly as x86/x64 instead of ANY in some cases as well.
Reply


Messages In This Thread
System.BadimageformatException - by joel - 05-23-2020, 07:29 PM
RE: System.BadimageformatException - by kudzu - 05-23-2020, 08:58 PM
RE: System.BadimageformatException - by joel - 05-24-2020, 02:53 AM
RE: System.BadimageformatException - by kudzu - 05-24-2020, 06:13 PM
RE: System.BadimageformatException - by joel - 05-25-2020, 02:35 PM
RE: System.BadimageformatException - by kudzu - 05-25-2020, 05:40 PM
RE: System.BadimageformatException - by joelcc - 06-01-2020, 05:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)