Hey guys,

I am testing NHibernateIntegration for a new project. I got this
exception in the web application:

"NHibernate.LazyInitializationException: Could not initialize proxy -
no Session"

The NHibernateGenericDao.FindById method closes the session after load
the entity (proxy for entity), and them when a property is called by
the appplication the proxy can't get data because there is no
session...

I think If the framework kept the session live in the thread context
like HttpCurrent.Items the proxy would work fine...


I forgot something?



thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to