The remote server or share does not support transacted file operations

Despite its pitiful adoption in the developer community, I am implementing Transactional NTFS (TxF) transactions using the Microsoft.KtmIntegration.TransactedFile class. This allows me to reap the benefits of TransactionScope and distributed transactions for file operations (e.g. creates, updates, deletes). This is the only missing piece for typical transactional business applications. With …

2009 Jacksonville Code Camp: Slides and Code

The 2009 Jacksonville Code Camp was a great success. Many thanks to Bayer, Brandy, and everyone else that made it happen. The bar has been set really high for future Jacksonville code camps, and for the rest of Florida too. My session on Transactional WCF Services went well. Many great …

The flowed transaction could not be unmarshaled.

“Do not anticipate trouble, or worry about what may never happen. Keep in the sunlight.”  – Benjamin Franklin   It’s obvious that Mr. Franklin didn’t have to deal with bad data, bad code, or even the occasional hiccup. In the real world, there is “trouble” and we need to not …

What happens to your transaction with different data access methods

Unless you are working on a extremely simple or read-only application, transactions are a must. Using the System.Transactions namespace is the easiest and most efficient way to maintain system consistency when dealing with multiple calls or multiple resources. Although System.Transactions arrived in .NET in the 2005 product, it is still …

Communication with the underlying transaction manager has failed.

Don’t be so quick to blame the service or MSDTC when you see the error “Communication with the underlying transaction manager has failed.” Symptom: An error message that reads something like: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. —> System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from …