Thing is - this is a progress-blocking exception; I cannot fix the cause of the exception because it occurs outside of code I wrote:
Code:
at System.Data.Common.UnsafeNativeMethods.OraMTSJoinTxn(OciEnlistContext pCtxt, IDtcTransaction pTrans)
at System.Data.OracleClient.TracedNativeMethods.OraMTSJoinTxn(OciEnlistContext pCtxt, IDtcTransaction pTrans)
at System.Data.OracleClient.OracleInternalConnection.Enlist(String userName, String password, String serverName, Transaction transaction, Boolean manualEnlistment)
at System.Data.OracleClient.OracleInternalConnection.Activate(Transaction transaction)
at System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.OracleClient.OracleConnection.Open()
at System.Data.Common.DbDataAdapter.UpdateConnectionOpen(IDbConnection connection, StatementType statementType, IDbConnection[] connections, ConnectionState[] connectionStates, Boolean useSelectConnectionState)
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.Update(DataTable dataTable)
at DDHub.HubDSTableAdapters.DDH_CLIENTSTableAdapter.Update(DDH_CLIENTSDataTable dataTable) in C:\Documents and Settings\matt.whittle\Desktop\Software Dev\Local\Visual Studio 2005\Projects\DDHub\DDHub\DDHub\HubDS.Designer.vb:line 9887
at DDHub.frmClientDetail.DDH_CLIENTSBindingNavigatorSaveItem_Click(Object sender, EventArgs e) in C:\Documents and Settings\matt.whittle\Desktop\Software Dev\Local\Visual Studio 2005\Projects\DDHub\DDHub\DDHub\ModedForms\frmClientDetail.vb:line 275"
As noted, the code works in release, but not in debug.. Is there an option other than declaring a variable in Settings called "DisableTransactions":
If My.Settings.DisableTransactions Then
'run update code
Else
'setup transaction
'run updatecode
'complete transaction
EndIf
seems a shame to have to implement that..
Bookmarks