Friday, August 24, 2012

Error "The sandboxed code execution request was refused because the Sandboxed Code Host Service was too busy to handle the request" while Activating "crmlistcomponent.wsp" shaprepoint component MS CRM 2011

As in my previous post MS CRM 2011 and Sharepoint 2010 dadely Integration  i have mentioned how to integrate MS CRM 2011 with SharePoint for Doc library.

While doing for a different server i got a stragne error, while Activating the Solution in SharePoint.
The error is as follows..
same issue i faced few months ago in a VPC.
tried many things, but gave up... :(
this time luckily got one link and i tried and it worked this time... :)

for me the work around works... i did as follows...
A. There is a registry key that is used by the sandboxed solution infrastructure and sometimes gets the wrong value. To ensure that it is set to the correct value, take these steps on all servers that are running the sandboxed host service :
  1. On the server, click Start -> Administrative Tools ->Services.
  2. On the Services dialog, scroll to SharePoint 2010 User Code Host.
  3. Note the full user name in the Log On As column. You will need this information later.
  4. see the image
  5. Open SharePoint Management Shell.
  6. Enter the following at the command prompt, including all punctuation.
(Get-SPManagedAccount –Identity “username”).Sid.Value
Replace username with the name you obtained in step 3. E.g., MSCRM\SPFarm
This will return the user’s SID (Security ID , something like S-1-5-21-2482537914-923999840-652071091-1197), which you will use in a later step.
6. Open the registry editor and navigate to:
HKEY_USERS\SID you obtained earlier\SOFTWARE\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\SoftwarePublishing
7. Be sure the State key value is set to 0x00023e00. in my case it was 0x00023c00
8. Restart the sandboxed host service on all servers on which it is to run. even i restarted the IIS (iisreset \noforce)

B. You can redirect these attempts by adding the following line to the end of the hosts file located at C:\Windows\System32\drivers\etc:
This must be done on all servers running the sandboxed host service. Then restart the SharePoint 2010 User Code Host service on all these servers. even i restarted the IIS (iisreset \noforce)

there can be any reason for this for any env.
there are other work arounds in the link


No comments:

Post a Comment