Thanks Oskar, but you don't have to invoke Configure when you are using an
app.config/web.config to configure NHibernate. The problem was a
typographical error when setting up the XML namespace (xmlns) attribute on
the root hibernate-configuration tag.

On Tue, Sep 1, 2009 at 11:09 AM, Oskar Berggren <[email protected]>wrote:

>
> You are not calling Configure() before BuildSessionFactory().
>
> /Oskar
>
>
> 2009/9/1 James Crowley <[email protected]>:
> > Sounds like it's not loading any of your configuration to me...
> >
> > 2009/8/31 Brian C <[email protected]>
> >>
> >> I am heading back to basics to get a better understanding of
> >> NHibernate and its architecture by following the NHibernate in Action
> >> book (which does not contain the latest configurations).
> >>
> >> In doing so, I have had to update myself (a good thing) on the latest
> >> differences for the configuration changes. I just cannot get passed
> >> this proxyfactory exception from NHibernate. I have read many posts
> >> online discussing what to do to get passed this error, but my code is
> >> not running. It's a simple console application and I am setting up the
> >> configuration in the app.config file (included below). The
> >> NHibernate.ByteCode.Castle DLL has been included as a reference and is
> >> being copied locally when VS compiles. I am not sure where to go from
> >> here.
> >>
> >> <?xml version="1.0" encoding="utf-8" ?>
> >> <configuration>
> >>        <configSections>
> >>                <section name="hibernate-configuration"
> >>
> >> type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
> >>        </configSections>
> >>        <hibernate-configuration
> xlmns="urn:nhibernate-configuration-2.2">
> >>                <session-factory name="HelloNHibernate">
> >>                        <property
> >> name="dialect">NHibernate.Dialect.MsSql2005Dialect</
> >> property>
> >>                        <property
> name="connection.connection_string">Data
> >> Source=(local);
> >> Database=HelloNHibernate; Integrated Security=SSPI;</property>
> >>                        <property
> >>
> >>
> name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory,
> >> NHibernate.ByteCode.Castle</property>
> >>                        <property name="show_sql">false</property>
> >>                </session-factory>
> >>        </hibernate-configuration>
> >> </configuration>
> >>
> >>
> >
> >
> >
> > --
> > James Crowley
> > Managing Director
> > Developer Fusion - Connecting developers worldwide
> >
> > Developer Fusion Ltd | 58 Sandringham Close | Enfield, EN1 3JH
> > mob: 07986 624128 web: http://www.developerfusion.com/
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to