为什么在 VS2010 中关闭 Just My Code 后无法附加到 w3wp.exe 进程?

发布于 2024-08-16 14:57:44 字数 137 浏览 9 评论 0原文

我使用的是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

爱她像谁 2024-08-23 14:57:45

尝试重新启动 Visual Studio。这对我有用。

Try restarting Visual Studio. This worked for me.

煮酒 2024-08-23 14:57:44

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

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

木森分化 2024-08-23 14:57:44

好吧,我找到了如何让它工作,我重建了整个解决方案,它再次开始看到这个过程。这对我来说没有多大意义,但是哦,好吧。

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.

愁以何悠 2024-08-23 14:57:44

我通过单击“调试”>“解决了这个问题”开始调试,启动后单击停止调试。然后我返回到“附加到进程”对话框,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.

oО清风挽发oО 2024-08-23 14:57:44

您确定 w3wp.exe 进程在调试时没有终止吗?它显示在任务管理器中吗?

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

有木有妳兜一样 2024-08-23 14:57:44

我找不到该进程,因为网页仍然显示错误对话框并且尚未完成处理。

确保您已结束之前的调试会话(并将 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.

终陌 2024-08-23 14:57:44

您可能需要成为您计算机的管理员/本地管理员组的成员。

今天我在我们的一台虚拟机上发生了这种情况。关闭、重新打开 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文