SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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
share|improve this answer
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 May 24 '13 at 16:18
@HughWood your solution didn't work for me. This one did. – Renan Jul 11 '13 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: to calculate what the quota should be set to.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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