Which Delphi version?
to debug ISAPI dll under Delphi
host application :
c:\WINDOWS\system32\inetsrv\w3wp.exe
parameters :
-s 2 -debug
and set your browser ( IE ) to connect http://127.0.0.1/
and also try
Delphi 7
I forgot about these notes from long ago.
Here is a few notes that I keep around that always work for me:
--------------------------------------------------------------------------------
Debugging ISPAI dll processes:
Install project file in a Virtual folder of IIS example: "Scripts"
Using the Internet Information Services - Admin tool select the
Properties for the Virual folder "Scripts" and then set the Application
protection to High (Isolated)
Now open the Control Panel | Administrative Tools | Component Service |
Computers | My Computer | COM+ Applications. Find the COM+ package which
denotes the desired IIS Virtual folder "IIS-{default Web
Site//Root/Scripts}. Right click and select Properties and copy the
"Application ID" GUID to the clipboard.
Select the Identity tab, change selected Account to "System Account"
with "Interactive User" enabled.
Now switch back to the Delphi IDE and select Project\Options dialog.
Click on the Directorys Conditionals tab and set the project Output
Directory to the IIS Virtual folder except prefix the output path as
follows: "\\?\c:\inetpub\scripts" being sure to prefix it with "\\?\".
Now select the Run|Parameters menu option and set the Host Application
to "C:\WINDOWS\system32\DllHost.exe" and the Parameters =
{BC4153B1-9E7A-43FB-B2B8-F40DE50DC3B9} equal to the GUID that was
previously saved from the COM+ applications properties for the Virtual
folder.
You should able to debug the ISAPI dll project without a problem now.
Cody,
Can't you create a project that is a webapp debugger app? I think that
is what I used to do. Then when I was done debugging, I would just
recompile for IIS.
I think if you search on the web there was also a technique of running
inetinfo as the program under delphi. It had to have some special parms.
http://dn.codegear.com/bg/article/23024
It worked perfectly the first time on Windows XP Pro with IIS 5.x