If you have multiple application pools started in IIS 7 and you want to determine which w3wp.exe process to attach the Microsoft Visual Studio 2010 debugger to, you can use the Microsoft Windows Task Manager.
Start the Microsoft Windows Task Manager: press [Ctrl + Shift + Esc].
Add the columns "PID" and "Command Line" to the Process tab.
The name of the application pool will be shown in the Command Line Column.
In this case the WCF service I wanted to debug, was running on the default [ASP.NET v4.0] application pool.
The Microsoft Windows Task Manager, shows the PID of this w3wp.exe processes as 8188, so now I can attach the Microsoft Visual Studio debugger, to the process with ID 8188, to start debugging the WCF service
Hello,
there is another way to show correct w3wp process. I’ve used it on IIS 6…
in the command window type:
C:\WINDOWS\system32\iisapp.vbs
Result displays all active application pools:
W3WP.exe PID: 6060 AppPoolId: ASP_Kysuce
Regards
Vasssek
Indeed, but that requires installation of the IIS 6 compatibility modus on IIS7.
For IIS7 there “appcmd list wp” command.
Excellent!
Thank you