Unable to attach debugger process in Visual Studio
Today I had to debug a web service that was running locally and in the same solution where the project that I am working on. Before I seem to remember just automatically stepping into the web service while debugging, but that was in Visual Studio 2005, so it could be different with 2003. So in order to do this you need to attach the worker process to the debugger so it can load all the symbols and whatnot, so it will catch at breakpoints and you can step through line by lineSo to attach a new process for the debugger to what you go to Debug -> Processes and then choose from the list and click attach. In my case this was the .Net worker process aspnet_wp.exe. This did not work for me right off, and it seems that many other people are having the same problem. I kept getting that wonderfully generic MS message that says "Unable to attach process" and that was it, no other help. In this case it can be just a simple oversight.
There is a worker process for each version of .Net that you have running. I was careless when I set up the web service in IIS and I had it running under the 2.0 worker process instead of 1.1, which is fine in general since everything is backwards compatible, but in order to debug you need to make sure you have everything matching up and choosing the right worker process for your app.
Labels: Visual Studio
posted by Tom Becker at
5/19/2009
|
2 Comments
![]()

