I am doing a few operation in linq2sql that needs to be run in a transaction. However, some of the methods I use inside of the transaction also uses linq2sql and runs inside a transaction of their own (the inner transaction is run within a stored procedure). This gives me the exception
[TransactionInDoubtException: The transaction is in doubt.]
System.Transactions.TransactionStateInDoubt.EndCommit(InternalTransaction tx) +76
with the inner exception
[SqlException (0x80131904): There is already an open DataReader associated with this Command which must be closed first.]
if I use MultipleActiveResultSets for SQL Server, I instead get the exception
[SqlException (0x80131904): The transaction operation cannot be performed because there are pending requests working on this transaction.]
Does anyone have experience from working with linq2sql and transactionscopes in this way?