Applications Systems

AppInsight for IIS: The WinRM client received an HTTP status of 502 from the remote WS-Management service

When attempting to run Automatic Configuration on AppInsight for IIS, the following error appears: Server Configuration Failed Detailed error information: Connecting to remote server failed with the following error message: The WinRM client received an HTTP status of 502 from the remote WS-Management service.

First published date

11/29/2018 10:53 PM

Last published date

6/25/2020 9:47 PM

Overview

When attempting to run Automatic Configuration on AppInsight for IIS, the following error appears:
 

Server Configuration Failed

Detailed error information: Connecting to remote server failed with the following error message: The WinRM client received an HTTP status of 502 from the remote WS-Management service.
 


 

 

Product section

Server Application Monitor

Cause

There is a proxy redirecting the traffic between the Orion Polling Engine and the IIS Server.

Resolution

  1. Run the following command on the Orion Server and the IIS Server:
    netsh winhttp show proxy
  2. The following will be displayed:
    Current WinHTTP proxy settings:
    Direct access (no proxy server)
  3. If it displays a Proxy, run the following command:
    NOTE: This will remove all proxy settings from the server.
    netsh winhttp reset proxy
  4. Re-run the IIS Configuration.