在n-Hibernate中未处理FileLoadException [英] FileLoadException was unhandled in n-Hibernate
本文介绍了在n-Hibernate中未处理FileLoadException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行我的项目然后出现错误我,e:
FileLoadException未处理
且错误代码为
无法加载文件或程序集''NHibernate,Version = 3.2.0.4000,Culture = neutral,PublicKeyToken = aa95f207798dfdb4''或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (HRESULT异常:0x80131040)
请给我解决方案
When I run my project then there is a error occour i,e:
FileLoadException was unhandled
and the errorcode is
Could not load file or assembly ''NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'' or one of its dependencies. The located assembly''s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
please give me solution
推荐答案
无法加载文件或程序集''NHibernate,Version = 3.2.0.4000,Culture = neutral,PublicKeyToken = aa95f207798dfdb4''或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (HRESULT异常:0x80131040)
这意味着项目引用中定义的NHibernate的汇编版本与您在GAC或Bin中提供的版本不匹配。
2件事:
1.确保你有NHibernate组件作为项目参考 - 放在GAC或Bin
2.预期版本为3.2.0.4000 - 提供此程序集或更改您现在提供的版本的引用。
Could not load file or assembly ''NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'' or one of its dependencies. The located assembly''s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
This means that the assembly version of NHibernate defined in your project reference does not match with the version that you are providing in GAC or Bin.
2 Things:
1. Make sure you have NHibernate assembly present for reference in project - placed in GAC or Bin
2. Version expected is 3.2.0.4000 - either provide this assembly OR change the reference to the version you are providing right now.
这篇关于在n-Hibernate中未处理FileLoadException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文