Skype for Business StatsMan Perf Agent (PerfAgent.exe) crashes because of an incorrect Listener URI

Symptoms

The Statistics Manager Performance agent (PerfAgent.exe) for Skype for Business crashes, and the following Event IDs are logged in the Event log:

Event ID 1000 / Source: Application Error
Faulting application name: PerfAgent.exe, version: 1.0.0.0, time stamp: 0x56258ce0
Faulting module name: KERNELBASE.dll, version: 6.3.9600.18202, time stamp: 0x569e7eb1
Exception code: 0xe0434352
Fault offset: 0x0000000000008a5c
Faulting process id: 0x34d0
Faulting application start time: 0x01d174c569326a54
Faulting application path: C:\Program Files\Skype for Business Server StatsMan Agent\PerfAgent.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: a82a4b96-e0b8-11e5-80ef-001dd8b722d0
Faulting package full name: Faulting package-relative application ID:

Event ID 1026 / Source: .NET Runtime
Application: PerfAgent.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
at Microsoft.PerfAgent.Client.PerfAgentClient.Initialize()
at PerfAgent.LyncPerfAgent.InitalizeClient()
at PerfAgent.LyncPerfAgent.InitializeAndStart()
at PerfAgent.LyncPerfAgent.Run(System.String, Microsoft.Lync.Management.OptionCollection, Boolean)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

Cause

This problem occurs because an incorrect Listener URI was specified during the installation of the Skype for Business Statistics Manager Perf Agent.

Resolution

To fix this problem, follow these steps:

  1. Open the C:\Program Files\Skype for Business Server StatsMan Agent folder, and then locate and open the following file:

    PerfAgent.exe.config
  2. In the file, locate the ListenerURI setting.
  3. Between the <value> tags, examine the Listener service URL to make sure that it's correct. 

    Note You should use the full FQDN of the StatsMan service and not Localhost.
  4. Repeat these step on all computers that have PerfAgent.exe installed. The Skype for Business StatsMan PerfAgent service restarts automatically.
Properties

Article ID: 3147840 - Last Review: Mar 21, 2016 - Revision: 1

Skype for Business

Feedback