ASP Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 4.11

Internet Information Services (IIS)

ASP Tutorials - Herong's Tutorial Notes © Dr. Herong Yang

hyBook - Guestbook Application

Using MS Access Databases

ActiveX Data Object (ADO)

Controlling Response Header Lines

Microsoft Scripting Runtime DLL

Using Cookies

ASP Sessions

ASP Objects

Microsoft Script Debugger

Internet Information Services (IIS)

... Table of Contents

Making Sure IIS 5.0 Is Running

Internet Information Services (IIS) 5.0 is a Microsoft product, that offers and manages the Internet services, like web (HTTP) server, and email (SMTP) server.

IIS 5.0 is installed on Windows 2000 by default. I did the following to make sure the web server is working:

1. Go to Control Panel, then Administrative Tools, then Services, and make sure that IIS Admin Service is Started, and World Wide web Publishing Service is Started.

2. Go to Control Panel, then Administrative Tools, then Internet Services Manager, and make sure that the Default Web Site under your local host name is running. If not, right mouse click on Default Web Site, and select Start command.

3. Create the following hello.html file:

<html><body>Hello world!</body></html>

4. Copy hello.html to \inetpub\wwwroot, which is the directory where the web server will take the web page files.

5. Run Internet Explorer (IE) with this url: http://localhost/hello.html.

6. If you see "Hello world!" on IE window, you know your IIS web server is serving HTML pages.

Making sure IIS 5.0 Is Supporting ASP Pages

1. Go to Control Panel, then Administrative Tools, then Internet Services Manager, and right mouse click on Default Web Site, then select properties command.

2. Click on Home Directory tab on the properties dialog box, then click the Configuration button.

3. Click on App Mappings tab on the configuration dialog box, then check to see the following line in the mapping area.

Extension   Executable Path                     Verbs
.asp        c:\winnt\system32\inetsrv\asp.dll   GET,HEAD,POST,TRACE

3. Create the following hello.asp file:

<%@ language="vbscript"%>
<html><body>
<%
response.write("Hello world!")
%>
</body></html>

4. Copy hello.asp to \inetpub\wwwroot, which is the directory where the web server will take the ASP page files.

5. Run Internet Explorer (IE) with this url: http://localhost/hello.asp.

6. If you see "Hello world!" on the IE window, you know your IIS web server is serving ASP pages.

Reviewing IIS 5.0 Settings

If you are serious about managing your IIS server, you go to the properties dialog box on the Default Web Site on Internet Services Manager, and review all the settings. Here are some interesting ones:

  • TCP Port on the Web Site tab - 80 is the default. But you can have any other numbers.
  • Log File Directory on the Properties button on the Web Site tab - Remember this directory if you want to look at the log files.
  • Local Path on the Home Directory tab - c:\inetpub\wwwroot. This is where the Web pages will be fetched, processed and delivered to the client.
Dr. Herong Yang, updated in 2002
ASP Tutorials - Herong's Tutorial Notes - Internet Information Services (IIS)