I've got an ASP.NET MVC2 app that runs fine using Windsor 2.5.3 and
NHibernate 3.1, and I'm trying to integrate NHibernateFacility to ease
session and transaction management. I'm entirely new to facilities and
seem to be missing some key concept. Every time I the app I receive
the following error:
The ProxyFactoryFactory was not configured.
Initialize 'proxyfactory.factory_class' property of the session-
factory configuration section with one of the available
NHibernate.ByteCode providers.
Here is my code adding the facility (and I'm sure there's something
that I need to do to bring in the config, but here's where I'm sure
missing something):
public class PersistenceInstaller: IWindsorInstaller
{
public void Install(IWindsorContainer container,
IConfigurationStore store)
{
container.AddFacility<NHibernateFacility>("nhibernatefacility");
}
}
Here is the XML from my web.config
<facilities>
<facility id="nhibernatefacility" isWeb="true"
type="Castle.Facilities.NHibernateIntegration.NHibernateFacility,
Castle.Facilities.NHibernateIntegration">
<factory id="nhibernate.factory" alias="informix">
<settings>
<item
key="connection.provider">NHibernate.Connection.DriverConnectionProvider</
item>
<item
key="connection.driver_class">NHibernate.Driver.IfxDriver</item>
<item
key="connection.connection_string">Database=******;Server=******;uid=******;password=******;pooling=false</
item>
<item key="dialect">NHibernate.Dialect.InformixDialect</
item>
<item
key="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle</item>
</settings>
<resources>
<resource name="Models\Customer.hbm.xml" />
<resource name="Models\Hauler.hbm.xml" />
<resource name="Models\Rack.hbm.xml" />
<resource name="Models\RrDetail.hbm.xml" />
<resource name="Models\RrHist.hbm.xml" />
<resource name="Models\RrSeed.hbm.xml" />
<resource name="Models\RrStation.hbm.xml" />
<resource name="Models\Supplier.hbm.xml" />
</resources>
</factory>
</facility>
</facilities>
What do I need to add to pull the configuration in to my app?
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.