我下载了最新版本的NHibernate“2.1.0.2002”。运行最新版本的nhibernate问题
它建立了良好的,但是当我运行我的单元测试,我不断收到错误: -
System.IO.FileLoadException:无法加载文件或程序集“NHibernate的,版本= 2.0.1.4000,文化=中立,PublicKeyToken = aa95f207798dfdb4'或其依赖项之一。定位的程序集清单定义与程序集引用不匹配。
它看起来像它看起来的旧版本。
这里是链接
https://stackoverflow.com/questions/839112/problem-while-migrating-nhibernate-to-higher-version
这是内部错误我得到:
=== Pre-bind state information === LOG: DisplayName = NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4 (Fully-specified) LOG: Appbase = file:///D:/Project Files/CIS3G/Webapp/_Test_DAL/bin/Debug LOG: Initial PrivatePath = NULL Calling assembly : CIS3G.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. === LOG: This bind starts in default load context. LOG: Using application configuration file: D:\Project Files\CIS3G\Webapp\_Test_DAL\bin\Debug\_Test_DAL.dll.config LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Post-policy reference: NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4 LOG: Attempting download of new URL file:///D:/Project Files/CIS3G/Webapp/_Test_DAL/bin/Debug/NHibernate.DLL. WRN: Comparing the assembly name resulted in the mismatch: Minor Version ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.