Dear All,
I'm getting errors from my proxy when trying to dereference a one-to-one relationship. I'm stuck because the error is 'no Session', which is quite different from 'Session was closed'.
Looking at the code here...
http://nhibernate.sourceforge.net/clove ... lizer.html
...you only get 'no Session' when no session was given to the proxy constructor, but this is not something I have any control over as far as I'm aware?
Clearly I am forgetting to initialize something or doing something very stupid?
Regards,
Richard.
Hibernate version:
1.2.0 Beta 2
Full stack trace of any exception that occurs:
Code:
NHibernate.LazyInitializationException: Could not initialize proxy - no Session.
at NHibernate.Proxy.LazyInitializer.Initialize()
at NHibernate.Proxy.LazyInitializer.GetImplementation()
at NHibernate.Proxy.CastleLazyInitializer.Intercept(IInvocation invocation, Object[] args)
at CProxyType... etc.