从DLL获取所有详细信息(System.BadImageFormatException)

编程入门 行业动态 更新时间:2024-10-27 04:30:28
本文介绍了从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)

本文发布于:2023-11-08 22:12:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1570593.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:详细信息   DLL   BadImageFormatException   System

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!