Home  >  Article  >  How to solve automation errors

How to solve automation errors

小老鼠
小老鼠Original
2024-01-24 14:07:262286browse

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.

How to solve automation errors

The steps to solve the Automation error are as follows:

  1. Check whether the client's MDAC program appears The problem, if yes, is solved 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. If there is a problem, please check the MSDTC in the component service and use a user with startup permissions to start.

  3. 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.

  4. Check whether command wrappers such as openpicture, closepicture, and OpenTGDPicture are called in the script. If so, capture the error through code.

  5. 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".

  6. 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn