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

When I try to deploy any SandBox Solution I receive following error:

Error occurred in deployment step 'Retract Solution': Timeout occurred while running the SharePoint Sandboxed Code service. This service is required to run sandboxed solutions in SharePoint. Please ensure the service is configured correctly in SharePoint.

Each time I try to deploy a SandBox solution, SharePoint 2010 User Code Host Service stops.

Why it happen and how can I deploy a SandBox Solution?

share|improve this question

Check this out.. It may be problem of feature which you have to activate from Central Admin.

Or you can check this

share|improve this answer
I checked them before. These are pointing to start the service in Services. I tried it, the service starts but stop on deployment process with no reason. – Reza Owliaei Jan 2 '13 at 7:07
up vote 0 down vote accepted

There's a sequence magic!

  1. In Windows Services, check Sharepoint Timer Service, start it if it's not running
  2. In Windows Services, check SharePoint 2010 User Code Host, start it if it's not running
  4. In Central Admin>Services on Server, find "Microsoft SharePoint Foundation Sandboxed Code Service", and start it.
  5. Deploy it.


  • if you skip step 1, steps 2 and 4 fails.
  • if you skip step 2, step 4 fails.
  • if you skip step 3, "SharePoint 2010 User Code Host" stops and deploy fails.
  • if you skip step 4, "SharePoint 2010 User Code Host" stops and deploy fails.
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.