CPM - Fail to install CPM - Error on logs: Could not load file or assembly 'CyberArk.Casos.dll' or one of its dependencies
Symptom
When attempting to run install CPM using CM (Connector Management) or directly on the CPM using the Wizard or via script, the following error is thrown in the log:
Or:
CPMEM001E Error while creating vault environment, creation was aborted. Description: System.IO.FileNotFoundException: Could not load file or assembly 'CyberArk.Casos.dll' or one of its dependencies. The specified module could not be found.
File name: 'CyberArk.Casos.dll'
at CyberArk.VaultServices.VaultServices.Init(String vaultFilePath, String username, SecureString password, String vaultName)
at CyberArk.Installation.CPMEnvMgr.CPMEnvMgr.connectToVault(String logonUserName, SecureString logonPassword)
at CyberArk.Installation.CPMEnvMgr.CPMEnvMgr.establishConnection(Dictionary`2 args, SecureString password, String& errorDetails)
at CyberArk.Installation.CPMEnvMgr.CPMEnvMgr.internalRegisterComponent(Dictionary`2 args, SecureString password, String& errorDetails)
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
Cause
The cause is that the executable cannot find CyberArk.Casos.dll or its dependencies. Note that the existence of CyberArk.Casos.dll in the bin folder is not sufficient. The pre-requisites .NET and C++ Redistributables must also be installed.
Resolution
Ensure the following are installed on the server:
- Microsoft .NET Framework 4.8
- Microsoft Visual C++ Redistributable 2013 (Both 32-bit and 64-bit)
- vcredist_x86.exe
- vcredist_x64.exe
- Microsoft Visual C++ Redistributable 2015-2022 (Both 32-bit and 64-bit)
- VC_redist.x86.exe
- VC_redist.x64.exe
In case .NET and the C++ Redistributables are already installed on the server, they may have become corrupted. Please run a repair on them or uninstall/reinstall them.