Windows 10: MSDTC issue: msdtc.exe terminating unexpectedly everytime I run a simple code to try a...

Discus and support MSDTC issue: msdtc.exe terminating unexpectedly everytime I run a simple code to try a... in Windows 10 BSOD Crashes and Debugging to solve the problem; I am trying a very simple distributed transaction on Windows 10 PC, but MSDTC.exe keeps dying every time I run the code (attached below). Both... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by turtlewindows, Aug 7, 2018.

  1. MSDTC issue: msdtc.exe terminating unexpectedly everytime I run a simple code to try a...


    I am trying a very simple distributed transaction on Windows 10 PC, but MSDTC.exe keeps dying every time I run the code (attached below). Both application and database are in one machine, Windows 10 PC.


    I am new to MSDTC, so I've googled to how to set it up. I've configured everything for it from giving authorization to Network Service (User) to the folders that are related to MSDTC (dlls involved with it, app running the distributed transaction, etc.), and disabled firewalls. But I still get errors as shown below.


    Error messages:
    -0x8004D01B: ("XACT_E_TMNOTAVAILABLE", "The transaction manager is not available."),
    -0x8004D01D: ("XACT_E_CONNECTION_DENIED", "A request to establish a connection with the transaction manager was denied."),

    -from the Event Viewer
    The XA Transaction Manager attempted to load the XA resource manager DLL.
    The call to LOADLIBRARY for the XA resource manager DLL failed:
    DLL=C:\Users\swx\Desktop\dll,
    HR=0x8007007e, File=com\complus\dtc\dtc\xatm\src\xarmconn.cpp Line=2503.


    I thought maybe you can do msdtc only on Window servers, but that doesn't make sense to me b/c clients should be able to run distributed actions on their PCs as well. I'd love anyone's input and help, because this problem has been frustrating me beyond limits for over a week now.


    Below is a C# code I am using to test msdtc.

    class Program
    {
    static void Main(string[] args)
    {
    string connstr = "this str works for non-distributed transactions";
    PerformTransaction(connstr);
    }
    private static void PerformTransaction(string connstr)
    {
    bool first_tx_result = false;
    bool second_tx_result = false;
    try
    {
    using (TransactionScope ts = new TransactionScope())
    {
    using (OleDbConnection con = new OleDbConnection(connstr))
    {
    con.Open();
    using (OleDbCommand cmd = con.CreateCommand())
    {
    cmd.CommandType = CommandType.Text;
    cmd.CommandText = string.Format("INSERT INTO T84073 ( NO, NAME, SAL) VALUES (3000, 'king', 1000)");
    cmd.ExecuteNonQuery();
    first_tx_result = cmd.ExecuteNonQuery() == 1;
    }
    // throw new Exception("Transaction not working out");

    using (OleDbCommand cmd = con.CreateCommand())
    {
    cmd.CommandType = CommandType.Text;
    cmd.CommandText = string.Format("INSERT INTO T84073 ( NO, NAME, SAL) VALUES (3000, 'ksdg', 1000)");
    cmd.ExecuteNonQuery();
    second_tx_result = cmd.ExecuteNonQuery() == 1;
    }
    if (first_tx_result && second_tx_result)
    {
    ts.Complete();
    }
    }
    }
    }
    catch
    {
    //rolling back is taken care of by transaction scope
    }
    }
    }
    }

    :)
     
    turtlewindows, Aug 7, 2018
    #1
  2. Kyle Win User

    MSDTC Errors


    Not sure which relevant forum this should be in so please move the thread to appropriate section. MSDTC issue: msdtc.exe terminating unexpectedly everytime I run a simple code to try a... :)

    So I'm getting a ton of MSDTC errors in Event Viewer. I tried the following instructions with no luck.

    I now get this error when trying to register the DLL:

    MSDTC issue: msdtc.exe terminating unexpectedly everytime I run a simple code to try a... [​IMG]


    I have attached below as many logs as I could.

    Thanks.
    MSDTC errors.zip
     
    Kyle, Aug 7, 2018
    #2
  3. borgus Win User
    The Windows Image Acquisition (WIA) service terminated unexpectedly.


    The Windows Image Acquisition (WIA) service terminated unexpectedly. It has done this 1 time(s).

    That's the Event Viewer error message at every reboot (appears to occur during the shutdown phase).
    There is a concurrent fault listed for the Canon scanner driver, CNC210C.DLL, which is not corrupted.

    Clues on how to banish these errors? Or should they simply be ignored, as they do no apparent harm....
     
    borgus, Aug 7, 2018
    #3
  4. Eric Ber Win User

    MSDTC issue: msdtc.exe terminating unexpectedly everytime I run a simple code to try a...

    Can't run .exe file

    Hi Phil,

    There are several reasons why you are having issues running .exe files on your Windows 10 laptop. To assist you better, kindly answer the questions below:

    • Have you made any changes to your laptop prior to this issue?
    • What troubleshooting steps have you done so far?
    • What is the error message that you received when running .exe files?

    Regards.
     
    Eric Ber, Aug 7, 2018
    #4
Thema:

MSDTC issue: msdtc.exe terminating unexpectedly everytime I run a simple code to try a...

Loading...
  1. MSDTC issue: msdtc.exe terminating unexpectedly everytime I run a simple code to try a... - Similar Threads - MSDTC issue msdtc

  2. Event ID: 4879 & 4350 MSDTC encountered an error /Cluster API

    in Windows 10 Gaming
    Event ID: 4879 & 4350 MSDTC encountered an error /Cluster API: Log Name: Application Source: Microsoft-Windows-MSDTC Client 2 Date: 25/12/2021 01:09:49 Event ID: 4879 Task Category: CM Level: Warning Keywords: Classic User: N/A Computer: DESKTOP Description: MSDTC encountered an error HR=0x80000171 while attempting to establish a secure...
  3. Event ID: 4879 & 4350 MSDTC encountered an error /Cluster API

    in Windows 10 Software and Apps
    Event ID: 4879 & 4350 MSDTC encountered an error /Cluster API: Log Name: Application Source: Microsoft-Windows-MSDTC Client 2 Date: 25/12/2021 01:09:49 Event ID: 4879 Task Category: CM Level: Warning Keywords: Classic User: N/A Computer: DESKTOP Description: MSDTC encountered an error HR=0x80000171 while attempting to establish a secure...
  4. Event ID: 4879 & 4350 MSDTC encountered an error /Cluster API

    in Windows 10 BSOD Crashes and Debugging
    Event ID: 4879 & 4350 MSDTC encountered an error /Cluster API: Log Name: Application Source: Microsoft-Windows-MSDTC Client 2 Date: 25/12/2021 01:09:49 Event ID: 4879 Task Category: CM Level: Warning Keywords: Classic User: N/A Computer: DESKTOP Description: MSDTC encountered an error HR=0x80000171 while attempting to establish a secure...
  5. Error 8004E00F MSDTC - COM+ HP Print Scan Doctor Service

    in Windows 10 Drivers and Hardware
    Error 8004E00F MSDTC - COM+ HP Print Scan Doctor Service: I have located an error in the HP Print Scan Doctor Service installed with the HP printer software.Automatic start of this service produces error 8004E00F when accessing MSDTC in Component Services - COM + Applications red arrow on PC icon.Changing it to manual start fixes...
  6. Getting MSDTC error

    in Windows 10 Customization
    Getting MSDTC error: I followed most of the settings needed to check MSDTC working. However still get the error System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServices.COMException: The...
  7. Microsoft Passport terminated unexpectedly + Login Issues

    in Windows 10 BSOD Crashes and Debugging
    Microsoft Passport terminated unexpectedly + Login Issues: Hello, Last night I noticed my computer didn't fully close and I couldn't get anything to come up to do it. PC was still running but there was a black screen, with nothing displayed. I thought oh well, I'll kill it for now, and boot it up tomorrow, see what's happened The...
  8. MSDTC Issue - COM+ Red Arrow, Delays in starting apps

    in Windows 10 Support
    MSDTC Issue - COM+ Red Arrow, Delays in starting apps: My COM+ is not manageable because it cannot talk to MSDTC. [img] Error is as below. [img] There is nothing in the event logs. Many articles on this issue say the logon for the Distributed Transaction Coordinator is incorrect and to change it back to NT...
  9. MSDTC Errors

    in Windows 10 Support
    MSDTC Errors: Not sure which relevant forum this should be in so please move the thread to appropriate section. *Smile So I'm getting a ton of MSDTC errors in Event Viewer. I tried the following instructions with no luck. The problem with DTC can be solved by hitting Shift+F10...
  10. The open procedure for service miApRpl, MSDTC, LSA, ESENT, BITS...

    in Windows 10 Performance & Maintenance
    The open procedure for service miApRpl, MSDTC, LSA, ESENT, BITS...: Does anybody out there know how to solve these event log errors? EventID 1008 Windows 10 x64 Pro (1511 bld10586.3) The usual solutions on Internet are all talking about WSS_WPG ( Windows SharePoint Services Worker Process Group) but likely these are not available on...