在项目属性的Build选项,选择Platform Target为x86,项目运行在WoW64模式下,可以成功载入32位的DLL。

解决64位平台上的"BadImageFormatException was unhandled"
2、或者运行下面命令(替换相应的.Net Framework版本)

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe setwow

相关文章:

  • 2021-08-28
  • 2021-11-23
  • 2021-08-29
  • 2021-10-30
  • 2021-12-24
  • 2021-12-03
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2021-06-22
  • 2021-06-24
  • 2022-01-12
  • 2021-07-04
  • 2021-08-31
  • 2021-08-21
相关资源
相似解决方案