T
tim
I wrap two updates from different tableadapters in a transactionscope. They
are connected to the same databese. By runing the program I get an error
message: Communication with the underlying transaction manager has failed.
Error HRESULT E_FAIL has been returned from a call to a COM component.
The code:
using (TransactionScope scope = new TransactionScope())
{
coworkerTableAdapter.Update(this.userDataSet.Coworker[k]);
projectTableAdapter.Update(this.userDataSet.Project[t]);
scope.Complete();
}
What can be the reason?
If I update only one table it works without problems.
are connected to the same databese. By runing the program I get an error
message: Communication with the underlying transaction manager has failed.
Error HRESULT E_FAIL has been returned from a call to a COM component.
The code:
using (TransactionScope scope = new TransactionScope())
{
coworkerTableAdapter.Update(this.userDataSet.Coworker[k]);
projectTableAdapter.Update(this.userDataSet.Project[t]);
scope.Complete();
}
What can be the reason?
If I update only one table it works without problems.