Thursday, May 2, 2013

Sandboxed Code Service is failing to start

I was working on a issue today where The processes associated with the service will appear to come up to the user but will disappear immediately. The SharePoint ULS logs show the following error:

'Process perf counters are disabled. Sandboxed code monitoring cannot continue.'

After alot of search i found that This issue occurs when the registry key 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance\Disable Performance Counters' value is set to 1.

To fix this issue, you will have to modify the registry

NOTE : This task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs.


RESOLUTION :

To fix the issue and run sandboxed code service successfully, the user should delete the registry key or set the value to '0'. To do this, follow these steps:
  1. Click Start, type regedit in the Start Search box, and then press ENTER.
  2. Locate and then click the following registry sub key:
         HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance\Disable Performance Counters
  3. On the Edit menu, click Modify
  4. In the Value data box, change the value to '0' and click on OK.
  5. Exit Registry Editor.




No comments:

Post a Comment