Sunday, September 28, 2008

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>

Sunday, September 28, 2008 8:11:02 AM (Eastern Daylight Time, UTC-04:00)  #     | 
Bookmark and Share

Theme design by Jelle Druyts