I’m trying to call a DB sp I wrote
from within c# transactionScope
public static void RunInTransaction(Action logic)
{
var options = new TransactionOptions { IsolationLevel = IsolationLevel.ReadCommitted };
using (var transaction = new TransactionScope(TransactionScopeOption.RequiresNew, options))
{
logic();
transaction.Complete();
}
}
where logic is actually calling the sp from c#.
And I get the following error:
System.Exception._COMPlusExceptionCode
Seems weird but might be related: If you have the following piece of code:
and that pattern is invalid (mine was missing a parenthesis), then you generate
COMPlusExceptionCode-exceptions when the containing class if initially loaded. (I managed this and I’m not even touching a database)