我有一个在我的工作笔记本电脑上运行良好的 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)
两者都是 Windows 10,都是 Visual Studio 2017,并且具有相同的配置。可能是什么问题并解决它?
确保“xxx.dll”及其所有依赖项与您的操作系统架构 (x86/x64) 相同。使用dependency walker 找出依赖模块。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句