How to debug an ISAPI DLL with Delphi under NT 4.0 with IIS version 4
- Make sure that the user name you use to do all your developing with for WinNT, has
Administrator rights. You need to add some settings to the user,
and in order to do so the user must have Administrator rights.
- Run the User manager for the user that is going to do the debugging.
Start | Programs | Administrative Tools (Common) | User Manager. On the Menu bar select
Policies | User Rights. Make sure the Show Advanced User Rights box is checked. Hit the
down arrow and scroll through the listing of the different Rights, you should see what
you need to add.
Give this user the following permissions:
Log on as a Service
Act as part of the operating system
Generate security audits
- You will need IIS to run as a process instead of a service. To do this run the registry
file labeled: Regproc.reg. This file will make the necessary changes to you registry
that makes IIS run as a process. The other registry file: Regserv.reg, will undo the
changes made by the previous registry file.
Run as a Process: Regproc.reg (to be able to debug run this one)
Run as a Service: Regserv.reg (this will undo the previous reg setting)
- Now stop these services and set them to manual: WWW publishing service, FTP Service and IIS Admin.
- Restart your computer.
- Open Delphi and from the menu bar, select Project | Options -> Linker and
select Use Include remote debugger symbols option.
- Now in Delphi, open the DLL project and use the following parameters:
Run: C:\Winnt\system32\inetsrv\inetinfo.exe
Parameters: -e w3svc
|