"CoCreateInstance failed" error.Answered

Hi,
running a batch script like this:

@SET SCRIPTS_PATH=%~dp0
@SET LICENSE_PATH=%~dp0..\
@SET DATA_PATH=%~dp0..\data
@pushd %SCRIPTS_PATH%
%LICENSE_PATH%TurboFloatServer.exe -u -config="%DATA_PATH%\Config.xml" -pdets="%DATA_PATH%\TurboActivate.dat"
@popd

I get this error message: <error>: CoCreateInstance failed: 0x800706d9

Full message response:

2020-10-23, 13:43:11 <error>: CoCreateInstance failed: 0x800706d9
2020-10-23, 13:43:11 <notification>: The Windows Firewall was disabled, thus no exception will be removed from it (or any 3rd party firewall).
2020-10-23, 13:43:11 <notification>: Windows Service uninstalled successfully.

Could you show me if/where I'm wrong and how to avoid this?

Thanks.

Answer

Run it as admin:

On Windows, start an "Elevated" command prompt (right click "cmd" in the start menue, then click "Run as Admin"). Then, in the elevate command prompt run the following:

Hi,
the script that I reported already runs as Admin.

Anyway, here is the result calling TurboFloatServer install/uninstall from console (as Admin):
https://i.ibb.co/2g3W9Fy/img.png

Please note that I have this error only on some machines.
 

The way to avoid the error is have Windows Firewall enabled. That is, don't use 3rd party firewalls. Everything else worked fine (the service installed / uninstalled successfully). TFS is just telling you what failed and why (and moved past it).

, edited