NHibernate Proxy setting

In all the samples I’ve seen on how to set up nhibernate, the cfg.xml doesn’t include any information on any kind of proxy, but when I step through to tutorials, I get errors saying a proxy hasn’t been configured.

Whut?

Current hibernate.cfg.xml

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
  <session-factory>
    <property name="connection.connection_string">Data Source=DREW\\SQLEXPRESS;Initial Catalog=Venue;Integrated Security=True;Pooling=False</property>
    <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
    <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
    <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
    <property name="show_sql">true</property>
  </session-factory>
</hibernate-configuration>

It’s relativity new, since 2.1 was released IIRC

Was this something introduced recently? This exapmle I have doesn’t seem to need it.

try…

<property name=“proxyfactory.factory_class”>NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>