从DLL获取所有详细信息(System.BadImageFormatException) [英] Get all details from a DLL ( System.BadImageFormatException )

查看:70
本文介绍了从DLL获取所有详细信息(System.BadImageFormatException)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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. :-)

—SA
Chances are, this DLL file is not a valid .NET assembly. Native OS platform also has DLLs. :-)

—SA


这篇关于从DLL获取所有详细信息(System.BadImageFormatException)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆