将NHibernate更新到3.3後會報錯:
未能加載檔案或程式集“NHibernate.ByteCode.Castle”或它的某一個依賴項。系統找不到指定的檔案。
最新版本的NHibernate内置了bytecode的provider,是以不再需要單獨提供該provider,解決這個問題隻需将該項配置移除
<property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>