无法加载组件(HR = 0x80131018) [英] Cannot load assembly (hr = 0x80131018)

查看:2390
本文介绍了无法加载组件(HR = 0x80131018)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,加载.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.

这篇关于无法加载组件(HR = 0x80131018)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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