I am working on a web project and medium trust is a requirement. I
downloaded the NHibernate Proxy Generator contrib (1.0.0 Beta 621) and
quickly found out that it was created with NH 2.0.1, which was before
the Castle Proxy stuff was split out.
I wanted to work with the latest and greatest so I downloaded the
source for the NHPG and updated all of the assembly references to the
latest stable releases for NH and Castle, added in the IProxyValidator
stuff, and recompiled without errors.
The problem is that now when I run the proxy generator I get the
following error (excuse any typos, couldn't copy and paste from cmd
prompt):
===============
The user must provide an ADO.NET connection - NHibernate is not
creating it.
at
NHibernate.Connection.UserSuppliedConnectionProvider.GetConnection()
at
NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare
()
at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords
(Dialect dialect, IConnectionHelper connectionHelper)
at NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update
(ISessionFactory sessionFactory)
at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg,
IMapping mapping, Settings settings, EventListeners listeners)
at NHibernate.Cfg.Configuration.BuildSessionFactory()
at
NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.GenerateProxies
(Configuration nhibernateConfiguration, String modulePath)
at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.Generate
(CastleProxyGeneratorOptions options)
at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.Generate
(Object[] args)
at NHibernate.ProxyGenerators.CrossAppDomainCaller.Run()
at System.AppDomain.DoCallBack(CrossAppDomainDelegate
callBackDelegate)
at System.AppDomain.DoCallBack(CrossAppDomainDelegate
callBackDelegate)
at
NHibernate.ProxyGenerators.CrossAppDomainCaller.RunInOtherAppDomain
(Action '1 callback, Object[] args)
at NHibernate.ProxyGenerators.Castle.CastleProxyGenerator.Generate
(ProxyGeneratorOptions options)
at NHibernate.ProxyGenerators.Console.Program.Execute(TextWriter
error, String[] args)"
===============
Does anyone know what might be missing here? Does anyone have a copy
of the Proxy Generators set up for 2.1.2 already that wouldn't mind
sharing?
--
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.