1
因此,我根據需要轉換我的映射文件(當製作 更改時,轉換爲映射)。任何配置NHibernate的時候,像這樣:組合.hbm.xml和流利NHibernate的奇怪異常 - 任何想法?
Assembly asm = Assembly.Load("RPMWare.Core.DataAccess");
//NHibernate configuration: see hibernate.cfg.xml
var cfg = new Configuration();
cfg.AddMappingsFromAssembly(asm);
cfg.Configure();
和運行我的網絡應用程序,我得到以下異常:
Could not load file or assembly 'NHibernate, Version=2.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)
然而,正如預期的我所有的集成測試都在工作。有任何想法嗎?
是的。碰到幾次我自己。 – yfeldblum 2009-01-09 00:41:15