I am working with SharePoint 2010 server. I have deployed a sandboxed solution to the sharepoint server. But while adding the webpart to page it shows the following error:

The sandboxed code execution request was refused because the Sandboxed Code Host Service was too busy to handle the request.

I have found the below article and followed all the work-arounds but the error is still persisting.


Can anyone tell me what am I missing or what I have to do in order to get the ID of this exception?

2 Answers 2


We've had to do this, too:

$uc = [Microsoft.SharePoint.Administration.SPUserCodeService]::Local
$uc.WorkerProcessExecutionTimeout = 5000

$tier = $uc.Tiers[""]   # default Tier has no Name
$tier.MaximumWorkerProcesses = 2    # number of CPU Cores + 1
  • Bypassing the reason you use sandbox isn't good practice. Instead correct configuration of quotas should be handled and planned. This is poor governance.
    – Hugh Wood
    Commented May 24, 2013 at 16:18
  • @HughWood your solution didn't work for me. This one did.
    – Geeky Guy
    Commented Jul 11, 2013 at 14:50

You need to check the quota for the site collection, this is what will be limiting you.

You can use the MSDN post here: http://msdn.microsoft.com/en-us/library/gg615462.aspx to calculate what the quota should be set to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.