0

Hi I am having a simple worker service project in .net core 3.1. For one of the functionality i need to have distributed transaction. I referred the example described here.

I am not getting any compile time error, but getting run time error

this platform does not support distributed transactions

though its on Microsoft's site its not working. Is there any thing missing or additional Nuget package needs to be added? How can we achieve distributed transaction in .net core.

Thanks in advance.

4
  • You must enable DTC
    – Max
    Commented Nov 29, 2021 at 19:07
  • 1
    .NET Core doesn't support Distributed Transactions because it would require a different transaction manager on each platform. Please have a look here: stackoverflow.com/questions/56328832/… Commented Nov 29, 2021 at 19:07
  • And to my knowledge it is not even solved in the current .NETT core version (5.0) - definitely one of the really really really weak points, sadly.
    – TomTom
    Commented Nov 29, 2021 at 19:20
  • @Max is probably correct if multiple persistence resources are involved. I would recommend reading all of that page plus this page Commented Nov 29, 2021 at 21:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.