Issue
While trying to access the COM-API I receive the following error:
[TT] ERROR: Caught ComException: Can't co-create object / Can't get object clsid from progid
Solution
Please take a look at the following steps:
- Re-register the ECU-TEST COM server with the user that runs your Jenkins agent or master. Since ECU-TEST 6.6 it is possible to register the COM server for each user separately. This is useful if administrative rights are not available.
- With administrator privileges
- Open a new command prompt (cmd.exe) with administrator privileges
- Run following command:
"C:\Program Files [(x86)]\ECU-TEST [Version]\ECU-TEST_COM.exe" /register
- Close command prompt after successful execution
- Without administrator privileges
- Open a new command prompt (cmd.exe) without administrator privileges
- Run following command:
"C:\Program Files [(x86)]\ECU-TEST [Version]\ECU-TEST_COM.exe" /register /peruser
- Close command prompt after successful execution
- With administrator privileges
- Check if the port number 8000 is already in use by another running program. This port is needed in ECU-TEST for making internal XML-RPC requests. To change the default port please read the instructions in the ECU-TEST manual at section Handling » Remote control of ECU-TEST
- Check if the COM server was registered properly in the Windows registry (
regedit.exe
) by searching for these entries: HKEY_CLASSES_ROOT\ECU-TEST.Application and HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ECU-TEST.Application - Try to use the version specific COM programmatic identifier for the configured ECU-TEST installation. This id can be set in the advanced settings of the ECU-TEST installation list.