无法加载组件(HR = 0x80131018)组件、加载、HR

由网友(年轻就是资本)分享简介:我有一个问题,加载.NET程序集到AutoCAD的用户。我得到以下错误:I have a user with issues loading a .Net assembly into AutoCAD. I get the following error:无法加载程序集。错误信息:System.BadImageForm...

我有一个问题,加载.NET程序集到AutoCAD的用户。我得到以下错误:

I have a user with issues loading a .Net assembly into AutoCAD. I get the following error:

无法加载程序集。错误信息:System.BadImageFormatException:无法加载文件或程序(HR = 0x80131018)

Cannot load assembly. Error details: System.BadImageFormatException: Could not load file or assembly (hr = 0x80131018)

他们正在使用ANIT病毒包称为端点安全并且当该关闭时,负载工作。

They are using an anit virus package called Endpoint Security and when this is turned off, the load works.

我不是一个.net专家,希望有可能是一个友好的解决方案比我提示用户把自己的反病毒包在垃圾桶里!?但我不知道从哪里开始,任何帮助将不胜收。

I am not a .Net expert and was hoping there might be a friendlier solution than me suggesting the user put their anti virus package in the trash!? But I've no idea where to start, any help would be greatly received.

推荐答案

如果你是不匹配的x86 /值为anycpu System.BadImageFormatException可能发生。尝试编译程序集的 86 模式显式地看看会发生什么。

System.BadImageFormatException can happen if you are mismatching x86 / AnyCpu. Try to compile your assembly in x86 mode explictly and see what happens.

阅读全文

相关推荐

最新文章