Never mind. I wasn't pulling in the XML from my web.config when creating the container. Duh!
On May 14, 3:04 pm, jprideaux <[email protected]> wrote: > When I don't specifically add the facility, I get "No component for > supporting the service > Castle.Facilities.NHibernateIntegration.ISessionManager was found", so > I guess the answer is that either it hasn't been automatically > registered or that I've screwed something up in the registration. > > On May 14, 7:15 am, Maximilian Raditya <[email protected]> wrote: > > > > > > > > > public class PersistenceInstaller: IWindsorInstaller > > { > > public void Install(IWindsorContainer container, > > IConfigurationStore store) > > { > > > container.AddFacility<NHibernateFacility>("nhibernatefacility"); > > > } > > } > > > I don't understand it. Are you re-registering the facility? Hasn't it been > > automatically registered? > > > -- > > Regards, > > > Maximilian Haru Raditya > > > On Sat, May 14, 2011 at 12:18 PM, jprideaux <[email protected]> wrote: > > > 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.ProxyFactoryFac > > > tory, > > > 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. -- 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.
