UserCode service fails to start because a performance counter call fails with an error code 'PDH_CSTATUS_NO_MACHINE'

Article translations Article translations
Article ID: 983081 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

On a server that is running Microsoft SharePoint Foundation 2010 or SharePoint Server 2010, you try to start the UserCode service (SPUserCodeService). The UserCode service does not start on this server because a performance counter call fails, and you receive the following error code in the ULS logs:

PDH_CSTATUS_NO_MACHINE

CAUSE

This issue occurs when the user account under which SPUserCodeService is configured to run does not have the necessary permissions to access the performance counters on the Windows 2008 server.

WORKAROUND

To work around this issue, verify that the user account under which SPUserCodeService is configured to run has permissions to access the performance counters. To do this, add the user account to the 'Performance Monitor Users' and 'Performance Log Users' group and grant the following permissions:

Performance Monitor Users (<Machine_Name>\Performance Monitor Users): Read & Execute Read
Performance Log Users (<Machine_Name>\Performance Log Users): Read & Execute Read

For a list of features that are accessible to the 'Performance Monitor Users' and 'Performance Log Users' group, please see
Overview of Windows Performance Monitor

For more information, please see SharePoint 2010: Sandboxed Code Service is failing to start

Properties

Article ID: 983081 - Last Review: April 10, 2012 - Revision: 7.0
APPLIES TO
  • Microsoft SharePoint Foundation 2010
  • Microsoft SharePoint Server 2010
Keywords: 
kbprb kbsurveynew kbpubtypekc kbexpertiseadvanced kbservice KB983081

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com