asp.net-mvc 找不到 w3wp 进程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13462016/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
w3wp process not found
提问by Yan Brunet
I use Visual Studio 2010 to debug a asp.net MVC project in my local machine. The steps are:
我使用 Visual Studio 2010 在我的本地机器上调试一个 asp.net MVC 项目。步骤是:
Click Debug and try to attch process "w3wp.exe". However it is not in the list.
单击调试并尝试附加进程“w3wp.exe”。但是,它不在列表中。
I am sure "Show processes in all sessions" is clicked.
我确定单击了“在所有会话中显示进程”。
回答by Yan Brunet
w3wp.exe won't show in the running process' unless there is actually an instance of the web application running.
w3wp.exe 不会显示在正在运行的进程中,除非确实有 Web 应用程序的实例正在运行。
Try to access your web page first, when it is displayed for the first time, try to attach your debugger. The process should now show up.
尝试首先访问您的网页,当它第一次显示时,尝试附加您的调试器。现在应该显示该过程。
回答by Jacob Pressures
You need to click Show Processes from All Users at the bottom of the Task Manager list. This is what i needed to do.
您需要单击任务管理器列表底部的显示所有用户的进程。这是我需要做的。
回答by Neph
- Restart IIS
- Right click your site >> Manage Website >> Browse
- Back into Visual Studio refresh the processes list
- 重启 IIS
- 右键单击您的网站 >> 管理网站 >> 浏览
- 回到 Visual Studio 刷新进程列表
回答by Trong Vo
Try to check on :"Show Processes for All Users" When on the 'Attach to Process' window in the bottom left there is a checkbox 'Show Processes for All Users'
尝试检查:“为所有用户显示进程”当左下角的“附加到进程”窗口中有一个复选框“为所有用户显示进程”
回答by dimath
An easy way that works ,when w3wp dont appear in the list,open a browser and write localhost ,then enter.After that w3wp appears to list.
一个简单的方法,当 w3wp 没有出现在列表中时,打开浏览器并输入 localhost ,然后输入。然后 w3wp 出现在列表中。
回答by A. Seculici
In my case, once I rebuild the web project and raise the limit of Connection Time out (in seconds), it automatically shows in Debug/Attach to Process list and keeps working.
就我而言,一旦我重建 Web 项目并提高连接超时(以秒为单位)的限制,它就会自动显示在调试/附加到进程列表中并继续工作。
回答by Neel
In my case, I have not opened the Visual Studio in Admin mode that is why the w3wp.exe was not showing on the list.
就我而言,我没有在管理员模式下打开 Visual Studio,这就是 w3wp.exe 没有显示在列表中的原因。
When I opened the Visual Studio in Admin mode, it worked.
当我在管理员模式下打开 Visual Studio 时,它工作正常。
Right click on Visual Studio -> Open in Admin mode.
右键单击 Visual Studio -> 在管理员模式下打开。
回答by JrBriones
If you are using something like Advanced Rest Client to test routes, call your route again then refresh the list of processes and it will show up
如果您使用 Advanced Rest Client 之类的东西来测试路由,请再次调用您的路由,然后刷新进程列表,它将显示
回答by O?uzhan Soykan
GoTo Web Project properties -> Select (Web) on the left sidebar -> GoTo under (Servers) header -> Click to dropdown and select "Local IIS"
GoTo Web 项目属性 -> 在左侧边栏上选择 (Web) -> 在 (Servers) 标题下的 GoTo -> 单击以下拉并选择 "Local IIS"
and apply. Then, when you start debugging you will see w3wp.exe on the proccess list.
并申请。然后,当您开始调试时,您将在进程列表中看到 w3wp.exe。
回答by Eleanor Zimmermann
I just ran into this issue - you may want to also double check your host settings and verify that you are actually pointed to localhost and not a production server.
我刚刚遇到了这个问题 - 您可能还想仔细检查您的主机设置并验证您实际上指向的是 localhost 而不是生产服务器。
I forgot I was pointed at a remote server, and thus, though I was accessing the site, it wasn't anything local so w3wp wasn't running, despite my superficially being able to see the site running.
我忘记了我指向的是远程服务器,因此,尽管我正在访问该站点,但它不是本地的任何内容,因此 w3wp 没有运行,尽管我表面上能够看到该站点正在运行。

