Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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
Posted

1 solution

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.
 
Share this answer
 
Comments
Tanumay99 21-Feb-13 3:00am    
Thank you for this solution.
Sandeep Mewara 21-Feb-13 3:51am    
Welcome.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900