Thenaruvi, In my experience this occurs when you hand out the same instance of ISession to multiple requests or multiple threads. So when the instance is closed or disposed on one it will closed or disposed on the others. I generally try to setup my web applications using a DI tool of some sort, so that my ISession's - through UnitOfWork & Repository - are handed out on a per request basis. Tools like Ninject or Structuremap can help you accomplish this.
My two cents.... I hope this helps. -zd On Fri, Nov 10, 2017 at 2:27 AM, Thenaruvi Vetriyarasu < [email protected]> wrote: > Hi All, > > We have our web application built using NHibernate > > When there multiple users using the web application, the NHibernate > session closed in one session affects the other, hence error messages like > ISession Closed is thrown. Similarly, when there are users updating data in > the screens that uses NHibernate, errors like 'This row was already > modified or deleted by another user ...' are thrown. > > Any ideas to solve this issue will help us lot. > > Thanks, > Thenaruvi > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
