Error while deploying your Project/Application:
Error occurred in deployment step ‘Activate Features’: Cannot start service SPUserCodeV4 on computer ‘servername’.
By default SharePoint Services UserCode Host Services is disabled. Just you need to enable it.
Below are the steps to fix the error :
Start “SPUserCodeV4″ service on the server.
Start “Server Manager” on windows server 2008. Go to Server manager> Configuration >Services. Start “SharePoint 2010 User Code Host” (SPUserCodeV4) service if it is not running.
After solve this issue you will get one more error(maybe)
Error occurred in deployment step ‘Activate Features’: This feature cannot be activated at this time. The contents of the feature’s solution requires the Solution Sandbox service to be running.
Start “Microsoft SharePoint Foundation Sandboxed Code Service” from Sharepoint 2010 Central Administration.
Go to Central Administration>System Settings>ManageServices on Server. Start the service.
Now you can package and deploy sandbox solutions from Visual Studio.