运行时错误:The ProxyFactoryFactory was not configured
我的程序运行在VS2005+Oracle+NHibernate下,运行时时出现如下错误:
The ProxyFactoryFactory was not configured.
Initialize 'proxyfactory.factory_class' property of the session-factory configuration section with one of the available NHibernate.ByteCode providers.
处理方法:
1、在App.config(或hibernate.cfg.xml)的<session-factory>节点下添加如下节点:
<property name='proxyfactory.factory_class'>NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property> 即可
不过前提是在项目中添加NHibernate.ByteCode.Castle引用,但如果你添加的是NHibernate.ByteCode.Castle引用,则添加相应的节点
                    
                
                
            
        
浙公网安备 33010602011771号