The situation: Working on a virtual machine for SharePoint development. I'd like to debug the sandbox solution that I have received from our contractor. Usually I manually attach to the process by going to the debug menu > Attach to Process... > then selecting the process from the list. This has worked in the past. Attaching to the process stopped working about the time that I reverted from Visual Studio 2012 back to 2010 (older projects had issues in 2010).
The problem: Visual Studio gives an error, "Unable to attach to the process" when trying to attach to SPUCWorkProcess.exe that I need to debug a SharePoint sandbox solution.
Additional information:
- I am able to attach to 2 other VM's are able to attach to the process without issue (using same credentials).
- An admin is able to attach to the process in this VM
- Sandbox debugging IS turned on, even been restarted a few times from Central Admin.
- Putting
System.Diagnostics.Debugger.Launch()
in the code isn't hit/doesn't react - Attach to the process from the task manager yields the message "Unable to attach to the crashing process" ULS has a message for SPUCWorkerProcess "LogWMIData: Connect Server failed: 0x80041003". Also noticed another error with OWSTIMER "...Drives are running out of free space..." so could this be a resource issue? the VM only has 4GB memory.
Given these details, I suspect that 1) available resources associated with my credentials are too small 2) something else is already attached to the process and crashing preventing me from attaching to it.