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
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:SystemCurrentControlSetControlComputerName
$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)
Set-Acl HKLM:SystemCurrentControlSetControlComputerName $acl
Full credit for this powershell script goes to Jie Li. If you aren’t following his SharePoint blog you really need to be!