PVWA - RestAPI login produces HTTP error code 500
Symptom
When performing login request via RESTAPI (example via Postman), the following error was received:
500 System.ServiceModel.ServiceActivationException
Environment
11.5;11.6;11.7;12.0;12.2;12.6;13.0;13.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA
Cause
IIS which hosts PVWA has more than one bindings for the same IP or hostname. This can be determined in applicationHost.config (C:\Windows\System32\inetsrv\config).
Example:
<binding protocol="https" bindingInformation="10.0.122.31:443:" sslFlags="0" />
<binding protocol="http" bindingInformation="10.0.122.31:800:" />
Resolution
1. Add <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/> to the web.config in the following location C:\inetpub\wwwroot\PasswordVault under <system.serviceModel> section.
Example:
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
<services>
2. Perform an iisreset