Question

I'm using VS2010 Beta 2 and I turned on .NET Framework source stepping, so I had to disable 'Just My Code'. But now the w3wp.exe process doesn't show up in the list of processes I can attach to. I've got both show all processes boxes ticked. Is this a bug or am I missing something?

Was it helpful?

Solution 2

Ok, I found how to make it work, I rebuilt the whole solution and it started seeing the process again. This doesn't make a whole lot of sense to me, but oh well.

OTHER TIPS

Make sure you have the Show processes in all sessions checkbox checked!

I fixed this by clicking Debug > Start Debugging, then once it starts up click Stop Debugging. Then I returned to the Attach to Process dialog and W3WP was in the list again.

Are you sure that the w3wp.exe process didn't die while debugging? Does it show up in Task Manager?

I couldn't find the process because the web page was still showing an error dialog and hadn't finished processing.

Make sure you have ended the previous debugging session (and run the web code to the end).

Closing Visual Studio did not help, the same goes for restarting IIS and rebuilding the solution.

As long as I was, some weird way, still attached to w3wp it did not show up in the attach list. Once I made sure the web page had finished and no dialogs of any kind was open, w3wp returned again.

You might need to be a member of the Administrators/Local Admins group for your machine.

Had this happen to me on one of our VMs today. Closing, re-opening VS2010 made no difference, rebuilding the website (!) made no difference.

But I logged out, logged in as administrator, added myself to the Administrators group, logged out, logged back in as myself, and once every application was loaded up -- I could get w3wp.exe appearing in the processes list for attaching.

In the absence of some other confirmation, it is possible that the act of logging out/logging-in again did the trick all by itself.

Try restarting Visual Studio. This worked for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top