PVWA: Could not load file or assembly 'CyberArk.Casos.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)
Symptom
After upgrade to version 13, PVWA fails to start. There is an error message in the browser:
Server Error in '/PasswordVault' Application
Could not load file or assembly 'CyberArk.Casos.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)
If there are no errors in the web browser, please check the Event Viewer -> Application logs - > Event ID 1309.
Error:
Application Event Viewer
Environment
13.0;13.2;14.2;14.6 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA
Cause
This may be caused by another program using OpenSSL libraries. For example, the OpenSSL libraries may be taken from a different path such as "C:\Program Files\avs\bin", if Dell EMC Amavar Backup Client is installed.
In PVWA v14.6, the required OpenSSL library is located at:
<Drive:>\CyberArk\PVWA\OpenSSL
If there are other versions of OpenSSL installed, then this can trigger the error HRESULT: 0x8007045A
Resolution
Remove the path containing the other version of OpenSSL installed from the PATH variable. For example, "C:\Program Files\avs\bin" from PATH variable.
In PVWA v14.6, if you are not able to determine where the other version of OpenSSL is installed, then set the filepath "<Drive:>\CyberArk\PVWA\OpenSSL" to the top of the PATH variable.
Restart the machine, and test again.