Operation is not valid due to the current state of the object
896131Oct 25 2011 — edited Oct 26 2011We are working with the System.Transactions for transaction control. An error is happening when confirming a transaction. Even without having changed any information. The user opens a register and does not modify any information, press the Change button and generates the error. Is not processed any UPDATE, DELETE, INSERT. Only queries. Below is the error details:
Data base: Oracle 11g
Application Server: Windows 2003 64 bits. Client 11g 32 bits and 64 bits
Location: System.Transactions
StackTrace:
at System.Transactions.TransactionState.ChangeStatePromotedCommitted(InternalTransaction tx)
at System.Transactions.DurableEnlistmentDelegated.Committed(InternalEnlistment enlistment)
at System.Transactions.SinglePhaseEnlistment.Committed()
at Oracle.DataAccess.Client.PromotableTxnMgr.SinglePhaseCommit(SinglePhaseEnlistment spe)
at System.Transactions.TransactionStateDelegatedCommitting.EnterState(InternalTransaction tx)
at System.Transactions.TransactionStateDelegated.BeginCommit(InternalTransaction tx, Boolean asyncCommit, AsyncCallback asyncCallback, Object asyncState)
at System.Transactions.CommittableTransaction.Commit()
at System.Transactions.TransactionScope.InternalDispose()
at System.Transactions.TransactionScope.Dispose()
at FPw.InfraEstrutura.DataAccess.FPwTransacao.Dispose()
at LG.FPw_Cad.ServicoMapeador.Servicos.FichaCad.Update(Int32 lUserId, Int32 lMatFunc, LGVariant avRegFun, LGVariant avRegATF, Double dSalario, Boolean bConsiste)