This error happens if a particular deployment machine doesn’t have the comdlg.ocx file missing or improperly registered.


How to Fix Error:

  1. Check for the comdlg.ocx file. Verify if the file exists on the target machine in the following locations:

    • C:\Windows\System32 (32-bit systems)

    • C:\Windows\SysWOW64 (64-bit systems).

  2. If the dependency is not available, then it will need to be obtained from a system that has it (it should be available on your development machine in the directory mentioned in step 1).

  3. Register the DLL via the regsvr32.exe command.

    • Open the Command Prompt as an Administrator and run the following command, depending on your system.

      regsvr32 C:\Windows\System32\COMDLG32.OCX

      For 64-bit systems:

      regsvr32 C:\Windows\System32\COMDLG32.OCX


  4. You should see a successful message and then be able to proceed with the licensing installation.

For additional reference, see the following post on Microsoft on resolving an issue with COMDLG32.OCX: link