Click here to Skip to main content
11,797,355 members (78,822 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
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 at 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
0 CPallini 475
1 Maciej Los 370
2 OriginalGriff 363
3 Abhinav S 344
4 Andy Lanng 296
0 OriginalGriff 2,092
1 Maciej Los 1,760
2 KrunalRohit 1,436
3 CPallini 1,245
4 ppolymorphe 893

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2015
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