Solved

Debug C++ ISAPI extension in IIS7

Posted on 2010-09-16
1
1,489 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now