I used a convenient macro with key bindings in Visual Studio to connect to Windows XP IIS 5.1:
Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports System.Diagnostics Imports System.IO Public Module AttachDebugger ' This subroutine attaches to the first IIS Web Server found. Public Sub AttachToFirstIISWebServer() Dim process As EnvDTE.Process For Each process In DTE.Debugger.LocalProcesses If (Path.GetFileName(process.Name).ToLower() = "aspnet_wp.exe") Then process.Attach() Exit Sub End If Next MsgBox("No IIS Server found") End Sub End Module
However, with Vista, the IIS7 process (w3wp.exe) no longer works in LocalProcesses, but works as a service
source share