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

I was testing the code provided in below MSDN Link:

But I got compile time error as "Error1Error occurred in deployment step 'Retract Solution': Cannot start service SPUserCodeV4 on computer 'ComputerName'. $000DeletingEventReceiver"$0

Not sure what's wrong!! any help guys?

share|improve this question
up vote 2 down vote accepted

Try it from Central Admin first, see:

enter image description here


Go to run and type services.msc and open it. Please found SharePoint 2010 User Code Host and make sure that it is started. Once the Service starts the issue will resolved.

share|improve this answer

Go to Central Administration Central > System Settings > Manage services on server and make sure the "Microsoft SharePoint Foundation Sandboxed Code Service" is started.

share|improve this answer
"Microsoft SharePoint Foundation User Code Service" is not listed over there!! – NICK May 28 '12 at 12:58
Sorry, make that the "Microsoft SharePoint Foundation Sandboxed Code Service." – Danny Jessee May 28 '12 at 13:06

The TechNet article Enable sandboxed solutions on the farm (SharePoint Foundation 2010) lists two methods for starting the service:

  1. From the Services on Server page of the Central Administration website, click Start in the Action column of the Microsoft SharePoint Foundation Sandboxed Code Service row.
  2. From PowerShell, execute the following command: Start-Service -Name SPUserCodeV4
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.