Beware spelling mistakes in the configuration files. I mistyped "xmlns" as "xlmns", I guess that's what you get when you type something from scratch versus copying and pasting...
Thanks to everyone for your suggestions. On Tue, Sep 1, 2009 at 10:27 AM, James Crowley <[email protected]>wrote: > 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 -~----------~----~----~----~------~----~------~--~---
