mfc >> Question about ISAPI Server Extension

by mOK » Mon, 01 Dec 2003 17:45:52 GMT

hi, I'm trying to develop something with ISAPI.
But so far , I'm not clearly understand on 2 point:

1.How to debug isapi project ? there seems not a effical way to deal with
it.

2.I decleared some variants in CTestExtension.How to know whether it's
golobal or local?
I've tried to declear a member variant like this:
private: CString m_Keywords;
I find that the value of it is what it is when the last visitor visits .

any one can give me some suggestion?
many thanks. :)





mfc >> Question about ISAPI Server Extension

by Tim » Tue, 02 Dec 2003 05:18:24 GMT


Hi,

To debug, go into services in the control panel and shutdown IIS.
In VC with your project loaded, under Project, Settings, Debug enter:
inetinfo.exe and in the parameters box enter: -e W3Svc

See the following MSDN article for more info:

TN063: Debugging Internet Extension DLLs

- Tim








Similar Threads

1. ISAPI extensions and threads question

2. newbe question ISAPI extension

When I am working with an HTML form, am I guaranteed the order that the 
Name/Value pairs will arrive in when I get a call to HttpExtensionProc ?  

If my form if order of the fields in my form is Name 1, Name 2....
am I guaranteed they will arrive  Name1=Val&Name2=Val2  etc?



 
Gak -
 Finecats

3. ISAPI Extensions - Question for Microsoft ?

4. More ISAPI extension questions

I used platform builder 4.1 to create an emulator target.  
The CE web server appears to be working.  A virtual path 
was created using the HKEY_LOCAL_MACHINE\Comm\HTTPD\VROOTS 
key in projects.reg, but it is not working.  Can a virtual 
path map to any physical path or just to subdirectories 
off of the localhost path and does this work on the 
emulator?  I am trying to access my isapi extension dll 
which is located in the "release" directory.

Thanks,
Jim King

5. ISAPI Extension Question - IIS Server Security

6. Extension Filter - "Allow selected extensions" question

Hi ,
 I have a firewall webrule set to Allow selected extensions ,
the problem is that this configuration blocks requests that does not
specifiy file name , only DNS , for example www.mysite.com/index.html
will pass but www.mysite.com/ won`t.

I`m sure there is a simple solution for that , i just couldnt find it
anywhere .

Thanks
Yair Zamir

7. "the specified isapi extension or path does not exist on the server"

8. ISAPI Extension IIS 6 Internal Server Error(500)

Hello, i have an isapi extension that works good on iis 5. On iis 6 i
get internal server error..
I've used DEPENDS.exe to see if there was some missing dll. I found
that MFC71.dll msvcr71.dll where missing and i placed them on
C:\inetpub\wwwroot\HTTPListener\ and System32. I've regsvr32 the
HTTPListener.dll located at C:\inetpub\wwwroot\HTTPListener\.
Worked good and DEPENDS.EXE reported no errors.
I've also turned of the friendly errors on IE and it showed Server
Error.

Looking at iis log i always find the entry : 
2004-11-16 09:50:33 192.168.32.5 GET /HTTPListener/HTTPListener.dll
Handler=Default 80 - 192.168.32.56
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322)
500 0 0

for every request's that i do.

I've enabled Web Services extensions on iis and added a web service
extension for C:\inetpub\wwwroot\HTTPListener\HTTPListener.dll. I've
also enabled "All Unknown Isapi extensions". I Don't understand...
Please help..Thanks in advance..