How to resolve problems with out-of-process COM

16/10/2018 Stuart Moore

Applications with components that are running out-of-process can cause issues. Procmon can be used to detect these components by monitoring SVCHOST.exe or APIMON filtering by CoCreateInstance,  the failure will result in either CLSID not found, or Component not  registered, this is due to the COM subsystem not running within the  Container's virtual environment. To resolve this issue, find the CLSID  keys for this component and import them into the local HKCU registry.

Sucess Tip

Upgrade your Container, and use the new feature <Feature>COMVirtualization</Feature> which provides automatic support for Out of Process COM refer to How to enable support for out of process COM (COMVirtualization)‍ 


Step-by-step guide

  1. Identify the CLSID keys and add them into AppRegistry.xml.
    <Write>
      <KeyName>HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{5996704-662F-413D-8DCD-E5E221BF2374}\LocalServer32\</KeyName>
      <ValueName/>
      <Value ValueType="String">C:\ProgramData\Cloudhouse\DemoApplications\ProgData\Program Files (x86)\AAVOriginalExecutable.exe</Value>
    </Write>
  2. Change the LocalServer32 value to point to AppAcceleratorV.exe which has been renamed to AAVOriginalExecutable.exe.
  3. Create  a copy of AppAcceleratorV.exe and AppAccelerator32.dll, place these  files in the same directory as the original executable.
  4. Rename AppAcceleratorV.exe to AAVOriginalExecutable.exe.
    Illustration
  5. Create a configuration file named AAVOriginalExecutable.clc.
  6. In the configuration file (AAVOriginalExecutable.clc), create an EXE tag to refer the virtualization engine to the original executable.
  7. Specify an INCLUDE tag to refer the virtualization engine to the main redirection file.
    <AAV>
      <Exe>C:\ProgramData\Cloudhouse\DemoApplication\ProgData\Program Files (x86)\Original.exe</Exe>
      <Includes>
       <Include>%CloudhouseRoot%\DemoApplication\DemoApplicationV.clc</Include>
      </Includes>
    </AAV>

Applies To

Cloudhouse Containers

Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support