为什么在 VS2010 中关闭 Just My Code 后无法附加到 w3wp.exe 进程?
我使用的是 VS2010 Beta 2,并且打开了 .NET Framework 源代码步进,因此我必须禁用“Just My Code”。但现在 w3wp.exe 进程没有显示在我可以附加的进程列表中。我已经勾选了显示所有进程框。这是一个错误还是我错过了什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
尝试重新启动 Visual Studio。这对我有用。
Try restarting Visual Studio. This worked for me.
确保您已选中在所有会话中显示进程复选框!
Make sure you have the Show processes in all sessions checkbox checked!
好吧,我找到了如何让它工作,我重建了整个解决方案,它再次开始看到这个过程。这对我来说没有多大意义,但是哦,好吧。
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.
我通过单击“调试”>“解决了这个问题”开始调试,启动后单击停止调试。然后我返回到“附加到进程”对话框,W3WP 再次出现在列表中。
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.
您确定 w3wp.exe 进程在调试时没有终止吗?它显示在任务管理器中吗?
Are you sure that the w3wp.exe process didn't die while debugging? Does it show up in Task Manager?
我找不到该进程,因为网页仍然显示错误对话框并且尚未完成处理。
确保您已结束之前的调试会话(并将 Web 代码运行到底)。
关闭 Visual Studio 没有帮助,重新启动 IIS 并重建解决方案也是如此。
只要我以某种奇怪的方式仍然附加到 w3wp,它就不会显示在附加列表中。当我确定网页已完成并且没有任何类型的对话框打开时,w3wp 再次返回。
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.
您可能需要成为您计算机的
管理员/本地管理员
组的成员。今天我在我们的一台虚拟机上发生了这种情况。关闭、重新打开 VS2010 没有什么区别,重建网站(!)也没有区别。
但是我注销,以管理员身份登录,将自己添加到管理员组,注销,以自己的身份重新登录,一旦每个应用程序加载完毕,我就可以看到
w3wp.exe
出现在用于附加的进程列表。在没有其他确认的情况下,再次注销/登录的行为可能会自行完成任务。
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.