On my SDL Web 8 Content Manager box I get this COM error when I call the SystemWideList on the Core Service.
Exception calling "GetSystemWideList" with "1" argument(s): "Unable to get object: LicenseInfo
Retrieving the COM class factory for component with CLSID {F470B218-7754-4943-92A5-D264627DD361} failed due to the
following error: 80004005 Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))."
At C:\vagrant\tools\publish-site.ps1:35 char:5
+ $publicationTargets = $client.GetSystemWideList($filter);
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : FaultException`1
In this case I use Peter's Powershell Module but I have seen similar Unable to get object: LicenseInfo
Retrieving the COM class factory for component
errors when running the DXA install script.
The issue does not hapen every time in the same place. Also the CME works as normal now, while that also uses the Core Service. After restarting the machine the same script works fine.
What could cause such an issue?