Thursday, September 1, 2011

IIS 7 and Remote Debugging in .NET (Finding the App Pool Thread ID)

Today I had some fun doing remote debugging on an IIS 7 box running a .NET WCF service and wanted to note a couple of things.  First, you must install the linked download on the server.  Second, make sure your firewall ports are off for remote debugging (or just stop Windows Firewall completely).  And last, you’ll need to know the thread ID of the w3wp.exe process (if you have multiple web sites/apps running on the server).  You can find this by running:

c:\windows\system32\inetsrv\appcmd.exe list wps

It will nicely output the process, thread ID, and application pool name.

WP "756" (applicationPool:DefaultAppPool)

1 comment:

Note: Only a member of this blog may post a comment.