I realize this error is quite common especially when SharePoint 2010 installed fresh and we have sandbox solution to deploy. The error “No available sandbox code execution server could be found” will occurred when sandbox solution needs to be deployed and sandbox code service is not running.
- Go to SharePoint Central Administration site > System Settings > Manage services on server.
- Look for Microsoft SharePoint Sandboxed Code Service and click Start to start the service.
- If you found the service started already, it doesn’t hurt to Restart the service again.