System.Transactions Timeout
When debugging code that creates database transactions using TransactionScope, you may have an odd error when commiting. That's because the default transaction timeout is 1 minute. You can increase the timeout value in the TransactionScope constructor or in the config file like this:
<configuration>
<system.transactions>
<defaultSettings timeout="00:05:00" />
</system.transactions>
</configuration>