Click here to Skip to main content
13,198,563 members (47,684 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am referencing different projects,where code written in n-hibernate and i use the references files as
1. Antlr3.Runtime.dll
2. Iesi.Collections.dll
3. log4net.dll
4. Castle.Core.dll
5. Castle.DynamicProxy2.dll
6. NHibernate.dll
7. NHibernate.ByteCode.Castle.dll
8. NHibernate.Validator.dll
9. nunit.framework.dll
I got "FileLoadException was unhandled" Error.
details is:
"Could not load file or assembly 'NHibernate, Version=, 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 anyone help me about this.
Posted 27-Jan-13 20:58pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hi Tanumay,

Could be a version issue, make sure the physical NHibernate is Version= (we can see from the exception that this is the version is it looking for)

You might also check the GAC so see what version it is holding.

Tanumay99 29-Jan-13 4:13am
thanks for that solutions. but i checked the version. My NHibernate Version is and also i checked GAC,But still i got the same error
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Thanks, Edo Tzumer

I got my fault.
There is error in version
I solve it by the following code
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
and also i change my mapping assembly
<mapping assembly="Project"/>
Here Project is the resource type solutions where all the mapper as well as resource class present
and also i make version of the resource type and output type solutions same.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171020.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100