An error hresult e_fail is returned for calling COM components.

Source: Internet
Author: User

In Windows, when I use C # To Call InterOP. shdocvw. dll, an error hresult e_fail is returned when I call COM components. Some people on the Internet say they want to enable the DTC service, and then set the local DTC in the component service to enable the network DTC service, and allow inbound and outbound, and set it to not require verification, for example:

But after I set it up, I still cannot. Later I saw the COM + application in the component service.ProgramWhen an error is reported, the System Event Notification Service service is enabled again.

Instead, restart the computer, and disable DTC again. Then, enable the network DTC service of DTC and disable the System Event Notification Service, but no longer reports an error.

The time is limited. I did not go into it, but I just recorded it to avoid this problem next time.

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.