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]­>
> > .
> > 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.

Reply via email to