Sorry, ignore this. I hadn't got my nhibernate references setup correctly. Apologies for spamming the list
On Jun 29, 2:12 pm, JamesSpibey <[email protected]> wrote: > Hi, > > I have been trying to run the latest trunk version of nhibernate but I > can't seem to get the Castle proxy working correctly. The error I get > is:- > > Unable to load type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory, > NHibernate.ByteCode.Castle' during configuration of proxy factory > class. Possible causes are: - The NHibernate.Bytecode provider > assembly was not deployed. - The typeName used to initialize the > 'proxyfactory.factory_class' property of the session-factory section > is not well formed. Solution: Confirm that your deployment folder > contains one of the following assemblies: > NHibernate.ByteCode.LinFu.dll NHibernate.ByteCode.Castle.dll > > Steps taken so far > > 1) Get SVN trunk NHibernate code and built in VS2008. Built OK > 2) Get SVN trunk NHibernate contrib code and built in VS2008. Built OK > 3) Get SVN trunk fluent-nhibernate code, update references to > NHibernate built in step 1 and built in VS2008. > 4) Wrote simple test console app (see below), adding references to > NHibernate, NHibernate.ByteCode.Castle, Castle.Core, > Castle.DynamicProxy2 and FluentNhibernate > > Can anyone suggest what might be wrong? > > Thanks > > Code:- > > Sub Main() > Dim _configuration = Fluently.Configure() _ > .Database( _ > > MsSqlConfiguration.MsSql2005 _ > .Dialect(Of > NHibernate.Dialect.MsSql2005Dialect)() _ > ) _ > .ExposeConfiguration(Function > (c) c.SetProperty(Environment.ProxyFactoryFactoryClass, > "NHibernate.ByteCode.Castle.ProxyFactoryFactory, > NHibernate.ByteCode.Castle")) _ > .BuildConfiguration() > > _configuration.BuildSessionFactory() > End Sub --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
