CASTM028E Unexpected error in Logon [New password could not be written to file] code [-2405003].

CASTM028E Unexpected error in Logon [New password could not be written to file] code [-2405003].

101
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 13:03 PM


Symptom


When trying to logon to the Vault through the PVWA the following error is received: "CASTM028E Unexpected error in Logon [New password could not be written to file] code [4]"

Environment


11.5;11.6;11.7;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PWVA

Cause


The IIS service user ((PasswordVaultWebAccessPool) in the PVWA does not have the proper permissions to the credential files. By default the credential file is located in "C:\CyberArk\Password Vault Web Access\CredFiles" (but this is configurable via the web.config file).

Resolution


Set the proper permissions in the OS for the IIS service user (PasswordVaultWebAccessPool). The required permissions are:
-Modify
-Read & Execute
-List Folder Content
-Read
-Write


Additional Information


Details

SYMPTOM:
When trying to logon to the Vault through the PVWA the following error is received: "CASTM028E Unexpected error in Logon [New password could not be written to file] code [4]"

PROBLEM:
The IIS service user in the PVWA does not have the proper permissions to the credential files. By default the credential file is located in "C:\CyberArk\Password Vault Web Access\CredFiles" (but this is configurable via the web.config file).

SOLUTION:
Set the proper permissions in the OS for the IIS service user. The required permissions are:
For ASPNET (On Windows XP and Windows 2000) /
Network SERVICE (On Windows 2003)
  • Modify
  • Read & Execute
  • List Folder Content
  • Read
  • Write



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000rAnCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail