BadImageFormatException 和有效的 Win32
BadImageFormatException and valid Win32
我有一个 C# 应用程序,运行在我的工作笔记本电脑上运行良好。但是,同一应用程序不能在我的家用笔记本电脑上 运行,我收到一条错误消息:System.BadImageFormatException HResult=0x800700C1 Message=Could not load file or assembly 'xxx.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
都是Windows10,都是Visual Studio2017,配置也一样。
可能是什么问题并解决它?
确保 'xxx.dll' 和 它的所有依赖项 与您的 OS 架构 (x86/x64) 相同。使用 dependency walker 查找依赖模块。
我有一个 C# 应用程序,运行在我的工作笔记本电脑上运行良好。但是,同一应用程序不能在我的家用笔记本电脑上 运行,我收到一条错误消息:System.BadImageFormatException HResult=0x800700C1 Message=Could not load file or assembly 'xxx.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
都是Windows10,都是Visual Studio2017,配置也一样。 可能是什么问题并解决它?
确保 'xxx.dll' 和 它的所有依赖项 与您的 OS 架构 (x86/x64) 相同。使用 dependency walker 查找依赖模块。