Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Debug C++ ISAPI extension in IIS7

Posted on 2010-09-16
1
1,515 Views
Last Modified: 2013-12-25
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
Comment
Question by:pskemp
1 Comment
 
LVL 1

Accepted Solution

by:
pskemp earned 0 total points
ID: 33699493
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question