Solved

ISAPI  debugging

Posted on 1997-05-25
6
319 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 200 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
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.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 57
CRON statement to run every 3 minutes except on Monday morning 12am to 2am 7 94
fizzArray  challenge 1 83
scoreUp challenge 14 62
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

770 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