Attach to w3wp.exe from Visual Studio 2005 on Windows Vista

2007-01-09
Doesn't it just drive you crazy when you KNOW something IS there, but it isn't? Like when you're in Visual Studio 2005 on Windows Vista and would like to debug your asp.net application by attaching to the w3wp.exe process. You know you are running asp.net 2.0 code, but the dialog box still claimes that there is NO managed code inside w3wp.exe. But it is! Aaargh.

So you try to figure out what could be wrong, which may include the following:

I did use Process Explorer to ensure that .net was loaded in w3wp.exe, and sure enough it was.

So I found a note on the web about “Windows Authentication” being used when debugging asp.net. Now I’m not sure if this was the single thing that helped since I tried several things, but after installing “Windows Authentication” in IIS 7.0, the “Managed” code shows up in w3wp.exe and I can attach to it from Visual Studio 2005.

The solution:

Please write a comment if you’ve had the same problem, and got it solved the same way I did, or if you did something else/more to get it working.

<edit>Although primarily about pressing F5 to automatically attach to w3wp.exe, this blog post talks about what needs to be done.</edit>

2 Responses to “Attach to w3wp.exe from Visual Studio 2005 on Windows Vista”

  1. PZ says:

    Yeah I got a problem.

    The “Windows Authentication” checkbox is not available in my IIS7. I have the following options under security: Basic authentication, IP Security, Request Filtering, URL authentication. So no “Windows authentication”. Where do I then locate it?

  2. Idetrorce says:

    very interesting, but I don’t agree with you
    Idetrorce

Leave a Reply

Twitter: @mikeplate