Freelance web and mobile developer
In: IIS
9 Jan 2007Doesn’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>
I'm a freelance web and mobile developer that likes to share whatever experiences I might encounter. It used to be .NET related, and still is to large extent, but I'm also a struggling agnostic trying out interesting technologies from the big three - Microsoft, Google, Apple - and the open source world.
2 Responses to Attach to w3wp.exe from Visual Studio 2005 on Windows Vista
PZ
July 12th, 2007 at 13:20
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?
Idetrorce
December 16th, 2007 at 03:48
very interesting, but I don’t agree with you
Idetrorce