Hi,

I'm trying to integrate nhibernate with asp.net.  I want to create and
open the session on the Begin_Request event in the global.asax file.

It works if I set the current_session_context_class to 'managed_web'.
However If I set it to 'web', then I get the error No session bound to
the current context, when trying to call GetCurrentSession().

I'm using NHibernate 2.0, so I thought I should use 'web' (in
NHibernate in action it says that  'managed_web' is deprecated since
version 1.2)....

which one is correct ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to