Article ID: 983081 - View products that this article applies to.
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:
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.
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
Article ID: 983081 - Last Review: April 10, 2012 - Revision: 7.0