home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 September / CHIPCD_9_99.iso / software / uaktualnienia / OptionPackPL / iis4_07.cab / IIS_as_process.txt < prev    next >
Text File  |  1998-04-27  |  2KB  |  22 lines

  1. Running IIS as a Process Instead of a Service
  2. ---------------------------------------------
  3.  
  4. When debugging ISAPI applications, ISAPI filters, server components, or other code you are writing to run on top of IIS or PWS on Windows NT, it is sometimes convenient to run IIS as a process. This allows you to start inetinfo.exe from the command line or from inside your development tools, instead of managing it as an NT service, as happens by default.
  5.  
  6. Included in the IIS documentation is a page describing in detail how to run IIS as a process. To view this page, bring up the Product Documentation from the Start menu. Then in the tree control on the left side, open the following path:
  7. Microsoft Internet Information Server
  8.     Advanced Web Application Development
  9.         Debugging Your Application
  10.             Establishing a Debug Environment
  11. The steps are described toward the bottom of this documentation page.
  12.  
  13. Since making all the registry changes (steps 2 through 5 in the documentation page mentioned above) is tedious, we have included here two .reg files that automate these steps, both for switching from service to process, and back.
  14.  
  15. You must still manually make the usrmgr changes described in step 1 of the page mentioned above. That is, use the User Manager for Domains administration tool (USRMGR) to add the Log on as Service, Act as part of the operating system and Generate security audits rights on the local computer to the NT account you will use when debugging. This only needs to be done once. 
  16.  
  17. In this directory are two .reg files:
  18. IISProcess.reg -- use to switch IIS to run as a process
  19. IISService.reg -- use to switch IIS back to running as a service
  20.  
  21. NOTE: These reg files assume that IIS is installed in the standard location, i.e. "c:\winnt\system32\inetsrv\inetinfo.exe". If that is not the case, modify the .reg files appropriately before using them.
  22.