Can't attach to SPUCWorkerProcess

1

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.

visual-studio-2010
debugging
sharepoint-2010
sandbox
asked on Stack Overflow Jun 28, 2013 by joynoele

1 Answer

1

Solution was to provision a new virtual machine. My conclusion was that there is indeed a process running under my id (hence other people could attach to the process on the machine) preventing me from attaching to it again. I was never able to figure out how to detach any process already attached to it, if there ever was one at all. Hope this helps anyone else in some way. There appears to be very few solutions for "unable to attach to the process" that doesn't include forgetting to turn on the sandbox debugging.

answered on Stack Overflow Sep 13, 2013 by joynoele

User contributions licensed under CC BY-SA 3.0