Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I was testing the code provided in below MSDN Link:

http://msdn.microsoft.com/en-us/library/ms453149.aspx

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

3 Answers 3

up vote 2 down vote accepted

Try it from Central Admin first, see: http://troyscott.ca/2010/08/06/cannot-start-service-spusercodev4-on-computer/

enter image description here

OR

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

 
discard

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.