Part 1
When the shdocvw (Web browser) COM component is called, The hresult e_fail is returned. Summary:
1. Enable the Distributed Transaction Coordinator service on the Control Panel> Administrative Tools> service.
2. open Control Panel ---> Administrative Tools ---> component services ---> select computer ---> my computer ---> right-click Properties ---> select MSDTC ---> select Security Configuration check the allow in the Transaction Manager communication outbound, allowed inbound, and not required for verification.
As shown in:
Restart IIS
The preceding operations can solve the problem of hresult e_fail.
Above use XP, switch from http://community.studyez.com/blogs/zbinbo/archive/2007/08/22/com-hresult-e-fail.aspx
Part 2
The operations in section 2008 are as follows (roughly the same, I wrote this myself. For more information, see the source)
1. Start ---> Administrative Tools ---> in the service, enable the Distributed Transaction Coordinator service.
2. start ---> Administrative Tools ---> Local Security Policies ---> Advanced Security Windows Firewall-Local Group Policy object ---> right-click Properties ---> Allow outbound and allow inbound.
The above is mainly used for programming to create Domain Users and Configure permissions for NTFs folders. Of course, it can also be done manually. Since this line of software is done, it is not better to use programming, and it is more suitable. The younger brother is also learning to achieve something, and interested friends can communicate with each other.