Setting up IISFirst, you have to create a new application in IIS and set it up as usual. Two things are important during IIS and application setup:
1) In IIS, create the web application under Default Web Site.
2) Every application under Default Web Site should be using the same application pool, DefaultAppPool.
If you ignore these two rules, you will have additional configuration steps to run w3wp later.
Setting up the application in Delphi XE21) First and more important: Run Delphi XE2 as administrator! If you don't, Delphi may not be able to start the IIS Worker process (W3WP.exe).
2) In Delphi XE2 Ide, choose Run -> Parameters. Inform Host application and Parameters as you can see in the following picture:
W3WP.exe is the IIS Worker Process executable, and we will run it interactively to debug the ISAPI app. If you didn´t follow rules (1) and (2) of IIS Setup, then you will have to do additional configuration:
- Inform the web site using the parameter: -s "TheSiteId"