Recently , I tried to create a sand boxed solution for SharePoint 2010 using Visual Studio 2010. I have created a “Hello World” web part. When I pressed F5 in Visual Studio 2010, I got the following warning message even I have already got Microsoft SharePoint Foundation User Code Service started.
---------------------------
Microsoft Visual Studio
---------------------------
Unable to attach. Process 'SPUCWORKERPROCESS.exe' is not running on 'COMPUTER-NAME'.
Do you want to continue anyway?
---------------------------
Yes No
---------------------------
After using google.bing.com, I have found out the Sand boxed solution does not work on DC(Domain controller).If you are using SharePoint on DC, the following Windows PowerShell command would need to be run to enable Sandboxed Solutions.
Reference: http://ybbest.wordpress.com/2010/03/13/process-spucworkerprocess-exe-is-not-running/