Loading accounts view in v10 or classic has error: Error mapping types. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Symptom
While opening Accounts view in V10 or Classic UI, there is error:
PASWS001E Error occurred: Error mapping types.
...Mapping types:
IEnumerable`1 -> List`1...
...Mapping types:
PVPassword -> ExtendedListAccount...
Property:
ActionsDisplay ---> System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Environment
12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access Password Vault Web Access Accounts
Cause
PVConfiguration.xml was likely modified with an illegal character such as ampersand added in an attribute where it is unexpected.
Resolution
Determine which account or file is triggering the error. In Classic UI, use the different queries to help to narrow the candidates to check. Remove the illegal character.
Note that illegal characters are described in article:
Forbidden characters in Safe and object names
https://community.cyberark.com/s/article/00002055
Note that it may be simpler to simply revert PVConfiguration.xml to a previous version where PVWA was working.