Friday, March 11, 2011

Error occurred in deployment step 'Retract Solution': Cannot start service SPUserCodeV4 on computer "computer name" in SharePoint 2010

In this post we will discuss how to resolve below SharePoint 2010 error:

Error occurred in deployment step 'Retract Solution': Cannot start service SPUserCodeV4 on computer "computer name".

Also you can check out my previous posts on:

- Enable Anonymous Access in SharePoint 2010

- Enable Sign in as Different User Option in SharePoint 2013

- What's new for mobile devices in SharePoint 2013 ?

This error might come due to 2 causes- one is: Check whether is sandboxed solution.

If yes then go to the project properties (Select the project then click on the properties icon) then change Sandboxed solution to false.

And 2nd cause is Check Microsoft SharePoint Foundation Sandboxed Code Service is activate or not. By default it is not active.

If it is not in active stage then follow below steps to activate:

Go to Central Administartion -> System Settings -> Manage services on server -> Services on Server then Activate Microsoft SharePoint Foundation Sandboxed Code Service

The above solution works for me, hope it will work for you also.