Monday, 8 October 2012

Error Type: Error occurred in deployment step 'Add Solution': Cannot start service SPUserCodeV4 on computer ''.



While deploying the solution using visual studio 2010 , got the following error 'Error occurred in deployment step 'Add Solution': Cannot start service SPUserCodeV4 on computer 'UKREDDY'.'

There are two reason for the error. Those are,

1. SharePoint 2010 User Code Host service not started and
2. Microsoft SharePoint Foundation Sandboxed Code Service not started.

Now, we need to solve these two reasons

Step 1:

Open Services.msc in run command and check whether service is started or not  or Disabled?



if not started then start the service then right click on service and select 'Start'.

If The service is disabled then right click on service and select properties.



Now, change service startup type to automatic and click on 'OK'.



Now, right click on service then select Start.
it will takes few seconds time to start the service.




Step 2:

Check Microsoft SharePoint Foundation Sandboxed Code service is started or not.

You can do the following steps to resolve it.

a. Go to Central Administration

b. Open "System Settings"

c. Open "Manage services on server".



d. Locate the service "Microsoft SharePoint Foundation Sandboxed Code service"



e. Start the service  "Microsoft SharePoint Foundation Sandboxed Code service".



Close your application and reopen and now deploy sandbox solution, will deploy successfully. 


4 comments:

  1. Prasad :- Good Job buddy, Same solution worked for me in Sharepoint 2013 as well.

    ReplyDelete
  2. Cool, it works now. Thank you!

    ReplyDelete
  3. Thanks, solved the problem!!

    ReplyDelete
  4. great post. Clear and easy to understand. I am new to Sandbox.

    ReplyDelete