AK547820

Monitor_AK547820 (UnitMonitor)

SharePoint Sandboxed code service is not running

Knowledge Base article:

External

http://go.microsoft.com/fwlink/?LinkId=231867

Element properties:

TargetMicrosoft.KnowledgeServices.SharePoint.Foundation.2010.SPServiceInstance.UserCode
Parent MonitorSystem.Health.ConfigurationState
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.KnowledgeServices.Library.SchedulerMonitorEx
RemotableTrue
AccessibilityPublic
Alert Message
SharePoint Sandboxed code service is not running
<Details>
<Content>The SharePoint User Code Host Service is not running on this server. You will be unable to perform requests that require the execution of user code or activation of sandboxed solutions that contain user code. The task that fails depends on the topology and on the server that has the stopped service.
To fix this issue, restart the service. For more information, see the TechNet article.
</Content>
<CollectedInformation>
<Info>
<Name>Server name</Name>
<Value>{0}</Value>
</Info>
<Info>
<Name>Service status</Name>
<Value>{1}</Value>
</Info>
</CollectedInformation>
</Details>
RunAsDefault
CommentSupportTopic=TBD;VersionNumber=1.0.0.0;

Source Code:

<UnitMonitor ID="Monitor_AK547820" Comment="SupportTopic=TBD;VersionNumber=1.0.0.0;" Accessibility="Public" Enabled="true" Target="MicrosoftKnowledgeServicesSharePointFoundation2010Library!Microsoft.KnowledgeServices.SharePoint.Foundation.2010.SPServiceInstance.UserCode" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="KnowledgeServicesLibrary!Microsoft.KnowledgeServices.Library.SchedulerMonitorEx" ConfirmDelivery="true">
<Category>Alert</Category>
<AlertSettings AlertMessage="MonitorMessageb9392b2a3c904eec9766645a5cff5a2e">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="MicrosoftKnowledgeServicesSharePointFoundation2010Library!Microsoft.KnowledgeServices.SharePoint.Foundation.2010.SPServiceInstance.UserCode"]/HostServer$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="MicrosoftKnowledgeServicesSharePointFoundation2010Library!Microsoft.KnowledgeServices.SharePoint.Foundation.2010.SPServiceInstance.UserCode"]/ServiceStatus$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ErrorExpression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Target/Property[Type="MicrosoftKnowledgeServicesSharePointFoundation2010Library!Microsoft.KnowledgeServices.SharePoint.Foundation.2010.SPServiceInstance.UserCode"]/ServiceStatus$</Value>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">Running</Value>
</ValueExpression>
</SimpleExpression>
</ErrorExpression>
<SuccessExpression>
<Not>
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Target/Property[Type="MicrosoftKnowledgeServicesSharePointFoundation2010Library!Microsoft.KnowledgeServices.SharePoint.Foundation.2010.SPServiceInstance.UserCode"]/ServiceStatus$</Value>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">Running</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Not>
</SuccessExpression>
<Schedule>29780</Schedule>
</Configuration>
</UnitMonitor>