Lightning Tools Blog

SharePoint Tools, Web Parts and Discussions

The User Code Execution Request was refused because the User Code Execution Host Service was too busy to handle the request.

Previously I’ve been using the Basic install of SP2010 – but last week decided to go ahead and setup a VM with the Complete installation. This obviously means a little more configuration needs to be done manually, but this all helps the learning process. Posting this to remind myself as much as anything – but hopefully it will help others.

If you are trying to deploy and run Sandbox Solutions from within Visual Studio or even activating them through the Site Collection UI you may get the error:

The User Code Execution Request was refused because the User Code Execution Host Service was too busy to handle the request.

First thing to check is that you have the Microsoft SharePoint Foundation User Code Service running. You can get to it via Central Admin –> Services on Server

image

If you are also running SP2010 beta 2 on a domain controller you’ll also need to run this powershell script:

$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName
$person = [System.Security.Principal.NTAccount]"Users"
$access = [System.Security.AccessControl.RegistryRights]::FullControl
$inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
$propagation = [System.Security.AccessControl.PropagationFlags]::None
$type = [System.Security.AccessControl.AccessControlType]::Allow
$rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
$acl.AddAccessRule($rule)
Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl

Full credit for this powershell script goes to Jie Li. If you aren’t following his SharePoint blog you really need to be!

<nick/>

Click here to get an email when we update our blog

Print | posted on Tuesday, December 01, 2009 12:04 PM

Feedback

# re: The User Code Execution Request was refused because the User Code Execution Host Service was too busy to handle the request.

left by NaT at 12/20/2009 4:37 PM Gravatar
Thank you. You saved me a lot of time.
Title  
Name
Email (never displayed)
Url
Comments   
Please add 3 and 2 and type the answer here: