Hi John, Thank you for the answer. I did changed my code to use NHibernate transaction. But still getting the error. One more information, I am able to reproduce the error in local machine. Please give me insight on this
On Aug 27, 12:29 pm, John Davidson <[email protected]> wrote: > Yes > > John Davidson > > > > On Fri, Aug 27, 2010 at 12:43 PM, Amzath <[email protected]> wrote: > > You mean Do I have to use Session.BeginTransaction() to mange the > > transaction. > > > On Aug 26, 2:43 pm, John Davidson <[email protected]> wrote: > > > First, TransactionScope is not a replacement for the required NHibernate > > > transaction. That issues has been discussed a number of times in the last > > > week or so. > > > > John Davidson > > > > On Thu, Aug 26, 2010 at 3:24 PM, Amzath <[email protected]> wrote: > > > > NService bus handler messages are failing due to error in NHibernate. > > > > I am getting the following errors. > > > > > System.InvalidOperationException: Internal connection fatal error. > > > > System.ObjectDisposedException: Session is closed! > > > > Object name: 'ISession'. > > > > System.InvalidOperationException: There is already an open DataReader > > > > associated with this Command which must be closed first. > > > > Invalid attempt to call FieldCount when reader is closed. > > > > System.IndexOutOfRangeException: Portfoli1_24_0_ > > > > > My Scenario is > > > > NService bus message handler in a WCF service > > > > WCF Service bus is running in F5 - networks LTM > > > > But when not running in Cluster, we are not getting this error. > > > > Not able to reprodue in my local > > > > NHibernate version 2.1.2.4000 > > > > using Castle NHibernate Facility > > > > Not using MSDTC in Handler, Transaction scope was set to suppress. > > > > > My Code looks like this > > > > using (var tx = new TransactionScope(TransactionScopeOption.Suppress)) > > > > using (var session = > > > > _sessionManager.OpenSession(DatabaseAli)) > > > > { > > > > //do some operations > > > > _repository.Store(object1); > > > > _repository.Insert(object2); > > > > _repository.Delete(object2); > > > > tx.Complete() > > > > } > > > > > Can any one help on this? > > > > > -- > > > > 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]<nhusers%[email protected]> > > <nhusers%[email protected]<nhusers%252bunsubscr...@googlegroups.com> > > > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/nhusers?hl=en.-Hide quoted text - > > > > - Show quoted text - > > > -- > > 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]<nhusers%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/nhusers?hl=en.- Hide quoted text - > > - Show quoted text - -- 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.
