简体   繁体   中英

Why can't I attach to the w3wp.exe process when I turn off Just My Code in VS2010?

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?

确保选中“ 在所有会话中显示进程”复选框!

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.

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM