This code:
TransactionOptions tranOptions = new TransactionOptions();
tranOptions.IsolationLevel = IsolationLevel.Serializable;
tranOptions.Timeout = new TimeSpan(0,0,10);
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required, tranOptions))
{
using (SharedDbConnectionScope sharedConnectionScope = new SharedDbConnectionScope())
{
ActiveController<Company, CompanyCollection>.Save(item, username);
ts.Complete();
}
}
When executes it enables DTC (if it was manually disabled) and gives this exception.
[TransactionManagerCommunicationException: Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for network access in the security configuration for MSDTC using the Component Services Administrative tool.]