TFS Event 3031 Monitor

TeamFoundationServer2017.TfsEvent3031Monitor (UnitMonitor)

Monitor to detect event 3031 - Cannot Find Service Host

Knowledge Base article:

Summary

TFS Event 3031 occurred. This event is raised as an error when a service cannot find a service host on which to execute. This event may also be raised as a warning by the application service host when a team project collection's properties cannot be verified as valid.

Resolutions

This event may be caused by a number of different conditions. Check for any recent changes the server configuration, restoring any changes that may have caused this event to be raised.

Element properties:

TargetTeamFoundationServer2017.TfsAppComponentBase
Parent MonitorSystem.Health.ConfigurationState
CategorySecurityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeTeamFoundationServer2017.TfsSingleEventLogUnitMonitor
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="TeamFoundationServer2017.TfsEvent3031Monitor" Accessibility="Public" Enabled="true" Target="TeamFoundationServer2017.TfsAppComponentBase" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="TeamFoundationServer2017.TfsSingleEventLogUnitMonitor" ConfirmDelivery="true">
<Category>SecurityHealth</Category>
<OperationalStates>
<OperationalState ID="EventRaised" MonitorTypeStateID="EventRaised" HealthState="Warning"/>
<OperationalState ID="TimerEventRaised" MonitorTypeStateID="TimerEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<EventDisplayNumber>3031</EventDisplayNumber>
<TimerWaitInSeconds>600</TimerWaitInSeconds>
</Configuration>
</UnitMonitor>