本文介绍了从DLL获取所有详细信息(System.BadImageFormatException)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
—SA
Chances are, this DLL file is not a valid .NET assembly. Native OS platform also has DLLs. :-)
—SA
Assembly SampleAssembly ; SampleAssembly = Assembly.LoadFrom(@"C:\Program Files\Tavultesoft\Keyman\lpng.dll");
当我运行这些代码时,出现错误(异常)消息 System.BadImageFormatException未处理 无法加载文件或程序集"file:///C:\ Program Files \ Tavultesoft \ Keyman \ lpng.dll"或其依赖项之一.该模块应包含程序集清单.
when i run these code i got error(Exception) message System.BadImageFormatException was unhandled Could not load file or assembly ''file:///C:\Program Files\Tavultesoft\Keyman\lpng.dll'' or one of its dependencies. The module was expected to contain an assembly manifest.
推荐答案可能是,此DLL文件不是有效的.NET程序集.本机OS平台还具有DLL. :-)
更多推荐
从DLL获取所有详细信息(System.BadImageFormatException)
发布评论