Solution: 1. Check whether there is a problem with the client's MDAC program. If so, solve it by installing MDAC2.8; 2. Check whether the server's MSDTC starts normally, or whether there is a problem with the startup user's permissions; 3. Check whether the "Enable distributed COM on this machine" option is selected in the client's DCOM configuration properties; 4. Check whether command wrappers such as openpicture, closepicture, OpenTGDPicture, etc. are called in the script.
The steps to solve the Automation error are as follows:
Check whether the client's MDAC program appears The problem, if yes, is solved by installing MDAC2.8.
Check whether the server's MSDTC starts normally, or whether there is a problem with the startup user's permissions. If there is a problem, please check the MSDTC in the component service and use a user with startup permissions to start.
Check whether the client's distributed DCOM starts normally. If it does not start normally, please check whether the "Enable distributed COM on this machine" option is selected in the client's DCOM configuration properties.
Check whether command wrappers such as openpicture, closepicture, and OpenTGDPicture are called in the script. If so, capture the error through code.
If the above steps cannot solve the problem, you can try to execute regsvr32 scrrun.dll in "Run" to turn on the FSO function, or enable IE's security settings "Do not allow running not marked as Safe activeX control".
If some scripts require Microsoft's MSXML control to enter and the automatic installation fails, you can download and install MSXML 3.0 SP7 by yourself. If the msxml 3 service is turned off, use regsvr32 msxml3.dll.
The above is the detailed content of How to solve automation errors. For more information, please follow other related articles on the PHP Chinese website!