How to debug ISAPI in Window2000

zhaozj2021-02-08  221

First put the ISAPI in the directory of executable permissions, visit this DLL in IE, if it is downloaded instead of seeing the result, that is, you don't set this directory to execute permissions, set the Execute Permissions to Scripts and Executables can perform ISAPI,

For example, set the executable properties of wwwroot:

Open administrative tools in Internet Information Services, open the Default Web Site's property page, on the Home Directory tab, there is a general default Execute Permissions :, combobox its right to Script only, instead Scripts and Executables can perform the ISAPI

If you can't find this URL, it is your WWW service is not open. Output the current process number {charf [128] in the code of ISAPI; Sprintf (BUF, "ISAPI Running In Process% D", getCurrentProcessId ()); OutputDebugString (BUF);} For debugging (Attach to Process). OutputDebugstring output can be seen in dbgview.exe.

After seeing the results of the ISAPI in IE, open the Win2000 task list, select the process of Isapi, Mouse Right-click menu, select Debug, will call up VC6.0, in this

VC's Project Menu Setting -> Debug Tab, category Classic Select Additional DLLS, add your ISAPI in the list below, then open your ISAPI SOURCE file in this VC, set BREK POINT, Refresh IE in the file, Refresh IE, breakpoint Just take effect ....

If you want to recompile ISAPI, you will report an error that the file is being used, you can't update, you can run on the DOS console window.

NET STOP W3SVC (the role is to stop WWW service) You can update ISAPI.

After compiling, then the NET START W3SVC is executed to launch the WWW service.

or

Stop WWW services in the following ways:

Stop Default Web Site in IIS

Stop IIS Admin Service, World Wide Web Publishing Service in Service (Administrative Tools-> Service).

Start WWW services in the following ways:

In Service (Administrative Tools-> Service) Start IIS Admin Service, World Wide Web Publishing Service.

START Default Web Site in IIS

转载请注明原文地址:https://www.9cbs.com/read-2018.html

New Post(0)