2011-04-20 37 views
0

我在創建一組單元測試我的功能NHibernate的項目和我的測試過程安裝過程中失敗,出現以下錯誤:問題與NHibernate大會

SetUp : System.IO.FileLoadException : Could not load file or assembly 'NHibernate,  Version=3.0.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) 

我真的難倒我已經加入所有必要的參考資料等。任何幫助都會很棒。

+0

你運行的是什麼版本的流利nhibernate? – 2011-04-20 20:37:05

+1

版本不匹配 – 2011-04-20 21:17:55

回答

0

像Mauricio上面說的那樣,它很可能是你的版本不匹配。您有一個引用nhibernate 3.0.0.4000版的程序集,並且您的引用中沒有包含版本3.0.0.4000。如果你使用流利NHibernate,你應該去here獲得最新版本的NHibernate和流利NHibernate。只要使用這個下載中的所有參考資料,你就會很好。