I have a block of code that runs within a TransactionScope and within this block of code I make several calls to the DB. Selects, Updates, Creates, and Deletes, the whole ga
Confirmed this error can also be caused by a transaction timeout. Just to add to what Marcus + Rolf have stated, if you haven't explicitly set a timeout on the TransactionScope
, the timeout TimeSpan will assume a default value. This default value is the smaller of:
If you've overridden the local app.config
/ web.config
setting, e.g.
<system.transactions>
<defaultSettings timeout="00:05:00" />
</system.transactions>
But this is then 'capped' at the machine.config
setting <machineSettings maxTimeout="00:10:00" />