PVWA - RestAPI login produces HTTP error code 500

PVWA - RestAPI login produces HTTP error code 500

95
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 12:55 PM


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



Additional Information


Details

SYMPTOM:

When perform login request via RestAPI (example via Postman), the following error was received: 

500 System.ServiceModel.ServiceActivationException

PROBLEM:

IIS which host 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:" />

SOLUTION:

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




Actions
  • Print
  • Copy Link

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