CPM: Plugin execution fails with "The system cannot find the path specified" or "Could not load file or assembly 'CyberArk.Casos.dll'"
Symptom
Password management plugins fail to execute successfully. In PVWA, you will see one of the following error messages:
Error 1:
"CACPM243W Failed to read from third party log file. Error: invalid log line format."
Error 2:
"Error: Execution error. EXT01 :: Could not load file or assembly 'CyberArk.Casos.dll' or one of its dependencies. Attempt to access invalid address. (Exception from HRESULT: 0x800701E7). Error code:-1"
When reviewing the CPM logs (third-party debug plugin logs), you may encounter one of the following errors:
Error 1:
12/02/2026 08:47:39.413 | Info -> AssemblyLoader :: LoadAssembly -> Assembly loaded: CyberArk.Extensions.Plugin.LDAP, Version=20.0.0.9, Culture=neutral, PublicKeyToken=null from C:\Program Files (x86)\CyberArk\Password Manager\bin\CyberArk.Extensions.Plugin.LDAP.dll
12/02/2026 08:47:39.423 | Info -> q :: c -> The system cannot find the path specified.
12/02/2026 08:47:39.423 | ERROR -> q :: h -> Got Exception : The system cannot find the path specified.
12/02/2026 08:47:39.443 | ERROR -> CPMNetPlatform :: Main() -> Got exception : System.Exception: Got exception : The system cannot find the path specified.
Error 2:
19/02/2026 05:54:54.096 | ERROR -> CPMNetPlatform :: Main() -> Got exception : System.IO.FileLoadException: Could not load file or assembly 'CyberArk.Casos.dll' or one of its dependencies. Attempt to access invalid address. (Exception from HRESULT: 0x800701E7)
File name: 'CyberArk.Casos.dll'
at CyberArk.Extensions.Infra.Common.CasosDecryptor.criptolibConstDecryptEX(String encodedPassword)
at CyberArk.Extensions.Infra.Common.CasosDecryptor.Decrypt(String value)
at z.b(String A_0)
at ad.g()
at ad.p()
at e.a(String[] A_0)
Additionally, as a temporary workaround, adding or setting (if it already exists) the parameter RunPluginWithHighPrivilege=Yes on the platform in the additional policy settings allows the plugin to succeed, confirming the issue is tied to the least-privilege execution environment.
Environment
Privilege Cloud Central Policy Manager (CPM)
- Idira Central Policy Manager (CPM)
-
Target Platforms utilizing .NET or standard Idira plugins (e.g., LDAP)
-
Platform configuration
RunPluginWithHighPrivilegeis set toNo(Default/Recommended)
Cause
When plugins are configured to run with least privilege (RunPluginWithHighPrivilege=No), the CPM utilizes a local Windows shadow user account named PluginManagerUser to execute the plugin processes.
If the Windows profile for PluginManagerUser is missing, corrupt, or lacks the appropriate local permissions, the plugin will fail because it cannot resolve temporary file paths or load required DLLs (such as CyberArk.Casos.dll) into memory.
Resolution
To resolve this issue, you must ensure the PluginManagerUser has the correct local group memberships and a fully initialized Windows user profile:
Step 1: Initialize the PluginManagerUser Profile Choose one of the following methods to initialize the local Windows profile for the shadow user.
Method A: Manual Initialization (Recommended)
-
Log in directly to the CPM server via an interactive Windows session (RDP or Console) using the PluginManagerUser credentials.
-
Wait for Windows to fully load the desktop and create the local profile directories (e.g.,
C:\Users\PluginManagerUser). -
Log out.
Method B: Automation Script If manual login is restricted, you can initialize the profile using the provided Idira PowerShell scripts located in the CPM environment folder.
-
Open PowerShell as an Administrator on the CPM server.
-
Navigate to the directory containing the CPM hardening scripts (typically
C:\Program Files (x86)\CyberArk\Password Manager\Env). -
Run the following commands in order:
-
Import-Module .\CommonUtil.psm1Import-Module .\CPM_Password_Manager_Services_LocalUser.psm1Execute
-
(Note: This may cause the plugin to start working for a little bit but, the Casos.dll error may persist or change from Error code 9999 to -1 even after the profile is initialized). This is why we need to make sure to complete Step 2 as well.
Step 2: Verify Local Group Membership Before initializing the profile, ensure the user has the necessary base permissions.
-
Log in to the CPM server as an Administrator.
-
Open Computer Management (
compmgmt.msc) > Local Users and Groups > Groups. -
Open the local Users group.
-
Verify that PluginManagerUser is a member of this group. If it is not, add it.
PLEASE NOTE: After completing these steps, ensure the RunPluginWithHighPrivilege parameter on the platform is set back to "No" and trigger a password verification, change or reconcile to confirm the plugin executes successfully.