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 
"Castle Project Users" 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/castle-project-users?hl=en.

Reply via email to