Correct!! and I hope you are using manual Bind & Unbind in your webModule,
right ?

2009/4/24 graphicsxp <[email protected]>

>
> 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 ?
> >
>


-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to