Error "dll failed to register. HRESULT -2147024703" while installing DLP Agent
Last Updated June 04, 2019
During the install of DLP agent it fails. The installAgent.log file shows an error registering one of the .dll files.
Product: AgentInstall-x64_15_5 -- Error 1904.Module C:\Program Files\Manufacturer\Endpoint Agent\fomc64.dll failed to register. HRESULT -2147024703. Contact your support personnel.
One of the dependencies for the .dll file are not avilable therefore the .dll can not register
There are two ways to approach the solution to this issue. The first method is to just reinstall / repair the C++ redistributable. If that does not work then the second method is to use a third party utility named Dependency Walker to find the specific missing dependency then reinstall / repair the relevant application.
Method 1: Reinstall / Repair C++ Redistributable
Most Known agent dependencies come install with the Windows OS with the exception of the C++ redistributables. These will need to be reinstalled or repaired. The follow is instructions on how to repair them.
Open Apps and Features (Add / Remove Programs)
Find Microsoft Visual C++ 2012 x86 (Earlier versions of DLP agent may use 2008)
Right click and select modify and then repair.
Repeat the same process with Visual C++ 2012 x64
Retry the DLP Agent install
If the issue persists then try method 2.
Method 2: Using Dependency Walker To Find Missing Dependencies
This utility is designed to help find the dependencies for .dll files. It will also show if the dependencies are missing or not registered correctly.
Go to File > Open and browse to the .dll that is reporting the error. If the .dll is not present on the system copy the .dll from a known good source or run dependcy walker before closing the error / waring during a manual (not silent) DLP agent install. Once the .dll is selected it can take a few minutes for the system to scan for dependencies.
In the tree view review the children of the .dll from the error.
Any .dll's shown with a red icon are not installed properly and need to be either installed / repaired. In the case above the problem .dll files are msvcr120.dll and msvcp120.dll. To reinstall / repair the .dll's find the parent program by doing a google search "How to install msvcr120.dll". In this case that .dll belongs to the C++ redistributable.
Once the source for the .dll has been reinstalled / repaired restart the client machine.
Do Steps 3 - 5 again. The dependencies should no longer have a red icon next to them.
Attempt agent install again.
Subscribing will provide email updates when this Article is updated. Login is required to Subscribe