Attach a macro to IIS7?

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

+4
source share
1 answer

It may not be running yet. First you need to click on the site to force IIS to deploy it. There may also be more than one w3wp.exe (I could be wrong, I only know IIS7 from the 2008 server) if the IIS7 Vista implementation supports several application pools.

I don’t see the reasons why when starting and starting a process it will not be indicated in local processes.

+1
source

All Articles