Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ISAPI  debugging

Posted on 1997-05-25
6
Medium Priority
?
357 Views
Last Modified: 2013-11-19
How can I debug an MFC - ISAPI application under the MS Personal Webserver and Visual C++ 4.2?

0
Comment
Question by:Nils010997
6 Comments
 

Author Comment

by:Nils010997
ID: 1301793
I have not been able to hit any breakpoint and I get the
HTTP 1.0/500 error 87, which seems top be undocumented.
What application should I run?  Inetsw95.exe or something?


0
 

Author Comment

by:Nils010997
ID: 1301794
(I am talking about testing a server extension DLL.)

0
 

Accepted Solution

by:
401980 earned 800 total points
ID: 1301795
1) Stop your personal web server.2) Goto your project settings or press alt-f7 and goto the debug tab.3)In the "executable for debug session" text box enter "C:\Program Files\Personal Web Server\WebServer\Inetsw95.exe" or where ever your Inetsw95.exe file is.4) In your "program arguments" text box put in the following arguments "-e W3Svc"If you still don't get any break point check your command-parsing map's because that's all then that could not be correct.Here is an sample of one of my maps and the function declerationBEGIN_PARSE_MAP(CMy2000Extension, CHttpServer)
// TODO: insert your ON_PARSE_COMMAND() and
// ON_PARSE_COMMAND_PARAMS() here to hook up your commands.
// For example:
ON_PARSE_COMMAND(PutData, CMy2000Extension, ITS_PSTR ITS_PSTR ITS_PSTR ITS_PSTR ITS_PSTR)
ON_PARSE_COMMAND_PARAMS("Kno TelNo eMail Subject Concern")
ON_PARSE_COMMAND(Default, CMy2000Extension, ITS_EMPTY)
DEFAULT_PARSE_COMMAND(Default, CMy2000Extension)
END_PARSE_MAP(CMy2000Extension)
Here is the function.void PutData(CHttpServerContext* pCtxt, CString Kno, CString TelNo, CString eMail, CString Subject, CString Concern);I hope it help you some what.Good luck.Lodewyk
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:vinniew
ID: 1301796
Error 87 means that character code 87 was received as part of the request packet.

0
 

Author Comment

by:Nils010997
ID: 1301797
I  also found the answer by combining the information from several other sources.  Everything works fine now.
It seems so simple afterwards, as most things do in the programming business.
The trick is to stop the server and start it from inside the Visual C IDE and also to know the name of the PWS and to set up the HTML-page and parse the parameters correctly.

Thanks a lot anyway.


0
 
LVL 22

Expert Comment

by:CJ_S
ID: 4079486
uhm, I've got a question regarding this.

I have PWS installed. Stopped PWS. Put the executable stuff and program arguments in there...and it gives me an error "F:\ISAPI\Test\w3svc not found"

Could you perhaps help me some?

I will award points if you could help me with this.

regards,
CJ
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seveā€¦
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Loops Section Overview
Suggested Courses

963 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