MSDTC is enabled when sqlpersistenceservices is configured

Source: Internet
Author: User

When the database server and Web ApplicationProgramWhen the servers are not separated, you must enable MSDTC When configuring sqlpersistenceservices for persistence services. Otherwise, the message "network access to MSDTC of the Distributed Transaction Manager is disabled" is reported. Use the component service management tool to enable DTC for network access in MSDTC security configuration.

Then you need to enable the server's DCT and the Application computer's DTC. For details, refer to the following method:

1. MSDTC component settings:
Steps:
1. Control Panel-> Administrative Tools-> component services-> Computer-> my computer-> right-click-> Properties
2. Select the MSDTC page and confirm "use local coordinator"
3. Click "Security Configuration" at the bottom.
4. Select "allow network access", "allow remote clients", "Allow inbound", "Allow outbound", and "do not require authentication ".
5. For the database server, you can select "require verification to the caller"
Stop the Distributed Transaction Coordinator service and restart it.
Stop any resource manager services (such as Microsoft SQL Server or Microsoft Message Queue Server) that participate in distributed transactions and restart them.
6.add the msdtc.exe exception to the double fire wall
Command line available: netsh firewall set allowedprogram % WINDIR % \ system32 \ msdtc.exe MSDTC enable
7. DTC uses port 135 of remoting to ensure that the firewall is not blocked.

Debugging: the transaction has been implicitly or explicitly committed or terminated.

The methods found on the Internet are used, the RPC service is enabled, port 135 is enabled, MSDTC is configured, And the firewall is disabled...

Finally, only the hosts file (c: \ windows \ system32 \ drivers \ etc directory) is configured on the database server, and a line of 192.168.1. *** computer name is added.
The program can access the workflow database sqlpersistenceservices normally only after the same configuration is made in the application.

Using Microsoft's dtcping as an experiment, the two machines are not pinged. I don't know why, but now the application can access the SQL database of other machines. The workflow can be implemented.

Do teammates who encounter the same problem tell me why? Thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.