Yeah, I have added the httpmodule in web.config as follows:

<add name="NHibernate.Burrow.WebUtil.HttpModule"
type="NHibernate.Burrow.WebUtil.WebUtilHTTPModule,NHibernate.Burrow.WebUtil"/
>

Thanks for confirming that it should work from referenced assemblies,
I got a bit worried there ;)

I use a custom MembershipProvider and I am trying to get the session
when I try to authorize the login, and I am pretty sure that this
happens after the httprequest have started.

On Oct 1, 10:39 pm, "http://kwang.us"; <[EMAIL PROTECTED]> wrote:
> Just to make sure, you added that httpModel setting in the web config
> right?
> Of course you can use Burrow from referenced assembly. but in terms of
> asp.net life cycle, on which phase are you trying to get the Session?
> For the burrow to work, the HttpModule of Burrow prepares it before
> and after each httprequest, but if you are trying to use Burrow even
> before a http request hits, - or in a separate thread, you need to
> call new BurrowFramework().InitWorkSpace(); to start Burrow and
> new BurrowFramework().CloseWorkSpace(); to end when you are done with
> Burrow and NHibernate in that thread.
>
> On Oct 1, 3:48 pm, Geir-Tore Lindsve <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have looked into Burrow and it seems to fit perfectly with our
> > current project. I have problems to get it work though.
>
> > I have configured Burrow in my web.config file as described on the
> > homepage, but I am getting the following exception when I try to get
> > the session with new BurrowFramework().GetSession():
>
> >     Either workspace is not initialized yet or it is closed
> >     NHibernate.Burrow.Exceptions.ConversationUnavailableException:
> > Either workspace is not initialized yet or it is closed
>
> > My first thought is that this might be because I am trying to use
> > Burrow from a referenced assembly which contains all my DAO logic. I
> > need to keep this separate from the web app itself because it is
> > shared between two different web applications.
>
> > Am I right about my initial thought, or should this work? If it should
> > work, any idea what I might need to try?
--~--~---------~--~----~------------~-------~--~----~
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