Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1611
  • Last Modified:

Debug C++ ISAPI extension in IIS7

I have an ISAPI dll (native C++) that until now I've been able to debug happily with VS 2005 on Win XP by attaching to the inetinfo process. Only thing I had to do was set the "Application Protection" to low in IIS 5 and things were good.

Now I'm trying to get this going on Win 7 with IIS 7 - still using VS 2005. Lots of googling leads me to believe that I can do this by attaching to the appropriate w3wp process instead. However, this doesn't appear to work. I can't find an equivalent to "Application Protection" in IIS7, I've got no errors or logs to go on, just VS refusing to pick up when I instigate the ISAPI dll in a browser.

MSDN only talks about debugging up to IIS6, and even then only mentions inetinfo again. inetinfo is there on my Win 7 machine, but I've tried that with no luck either.

Really stuck on this, please help.

0
pskemp
Asked:
pskemp
1 Solution
 
pskempAuthor Commented:
Well I worked it out:

In the Debug - "Attach to Process" dialog there's an "Attach to:" line with a "Select..." button. You need to click "Select..." and tick "native code". You can then attach to the w3wp process and watch the symbols load...

By default this setting is "Automatic". My XP installation had automatically selected "native code", while the Win 7 had automatically selected "managed code".

Hope this helps someone.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Tackle projects and never again get stuck behind a technical roadblock.
Join Now