未处理System.IO.FileLoadException [英] System.IO.FileLoadException was unhandled

查看:100
本文介绍了未处理System.IO.FileLoadException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我遇到此错误未处理System.IO.FileLoadException".总是在这里和那里.

我使用dll构建应用程序.但是,当我运行该应用程序时,我得到未处理System.IO.FileLoadException".
Message ="无法加载文件或程序集'程序集名称,版本= 1.0.0.0,文化=中性,PublicKeyToken = f07652a56255dcb5"或其依赖项之一.找到的程序集的清单定义与程序集引用不匹配. (来自HRESULT的异常:0x80131040)为什么会这样?
如果我使用特定版本的dll构建了应用程序,则清单应引用该版本.为什么我会收到此错误?

我早些时候收到了此错误.但是我不记得我是如何克服这个错误的.

谢谢
Achintya

Hi,
I have this error "System.IO.FileLoadException was unhandled" here and there always.

I build an application using a dll. But, when I run that app, I get the "System.IO.FileLoadException was unhandled"
  Message="Could not load file or assembly 'Assembly name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f07652a56255dcb5' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

Why is this so ?
If I have the built the app using a specific version of dll, the manifest should refer that version. Why I get this error ?

I got this error sometime earlier. But I don't remember how I got past that error.

Thanks
Achintya

推荐答案

在项目的属性窗口(应用程序"选项卡)中,在资源"下,如果选择了图标和清单",则从使用默认设置嵌入清单"中更改清单. 创建没有清单的应用程序".


这篇关于未处理System.IO.FileLoadException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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