Applications Systems

AppInsight for IIS - Polling produces error: Unexpected token

After adding AppInsight for IIS it fails with Unexpected token 'xXBN*' or something similar. This can also occur after updating the password for an account.

First published date

10/16/2018 4:05 PM

Last published date

6/25/2020 9:34 PM

Overview

AppInsight for IIS polling produces an error similar to the following: 
 

Unexpected token 'xXBN*' $uri = 'https: //xxx.xx.xx.xxx:xxxx/wsman/'
$uriTemplate = '' $configurationName = 'Microsoft.PowerShell'
$retryConnectUsingFdqn = $False
$macroMissingWindowsCredentials = 'IisPowerShellMissingWindowsCredentials'
$macroUnableConnect = 'IisUnableConnectWinRmWindows'
$macroSessionsDepleted = 'IisSessionsDepletedWinRmWindows'
$macroSessionClosed = 'IisSessionClosedWinRmWindows'
$sessWsman = SwiGetPsSession $ip $login $uri $password

 

Product section

Server Application Monitor

Cause

A single quote is is not a valid character to be used in the Username/Password of the credentials used for polling.

Resolution

Change the credentials being used for polling to not use the special character single quote (').