Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 error like below.

"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 around but the error is still persisting.

http://blogs.msdn.com/b/sharepointdev/archive/2011/02/08/error-the-sandboxed-code-execution-request-was-refused-because-the-sandboxed-code-host-service-was-too-busy-to-handle-the-request.aspx

Can anyone tell me what am i missing or what i have to do in order to get id of this exception?

share|improve this question
add comment

2 Answers

We've had to do this, too:

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

$tier = $uc.Tiers[""]   # default Tier has no Name
$tier.MaximumWorkerProcesses = 2    # number of CPU Cores + 1
$tier.Update()
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
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

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.