How To Configure ASP Web Pages in Windows 2000 (301305)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
This article was previously published under Q301305 SUMMARY
This step-by-step article describes how to enable ASP Web pages on a Windows 2000-based computer. For ASP Web pages to work in the Windows 2000 environment, ensure that the Windows operating system, programs, and components are installed, the Internet Information Services (IIS) and Web settings are checked, and that the ASP functionality has been tested correctly.
Install Software and Components
Windows 2000 simplifies the process of installing and configuring IIS. By default, IIS 5.0 is installed on Windows 2000 Server. You can remove IIS or select additional components by using the Add/Remove Programs tool in Control Panel. NOTE: If you upgraded to Windows 2000, IIS 5.0 is installed by default only if IIS was installed on your previous version of Windows. Before you can configure the IIS service, you must first install it on the server.
back to the top
How to Install IIS on an Existing Windows 2000 Server- Click Start, point to Settings, and then click Control Panel.
- Double-click Add/Remove Programs, click Configure Windows, and then click Components.
- Follow the instructions on the screen to install, remove, or add components to IIS.
back to the top
How to Install Visual Interdev (Optional)
If you want to have a local server, install IIS from the Add/Remove Windows Components tool before you install Visual InterDev.
If you are installing Visual InterDev 6.0 to a computer that has Visual InterDev 1.0 installed, you should uninstall version 1.0 before you install version 6.0.
If you already have other Visual Studio components installed before you install Visual InterDev, you should start the Visual InterDev installation by clicking Microsoft Visual Studio product version in the Add/Remove Programs tool in Control Panel, and then clicking Add/Remove.
back to the top
How to Complete Visual InterDev Setup Configurations and Installation- With the first installation CD-ROM in your computer, double-click Setup.exe on this CD-ROM (if the Installation Wizard did not automatically start). The wizard steps you through the installation process. When the program starts, choose either a Typical or Custom installation.
NOTE: Depending on your selections and your current configuration, the wizard prompts you to install different required components and to restart Windows one or more times during the installation process. After each restart, the wizard automatically returns to the proper step. - After the Visual InterDev client has been installed on your computer, you are prompted to install Microsoft Developer Network (MSDN).
NOTE: You must install MSDN for F1 Help to work and to have access to the Visual InterDev documentation. If you have already installed MSDN or you do not want to install MSDN, click to clear the Install MSDN check box, and then click Finish.
back to the top
Install the Server Extensions
To install the FrontPage 2000 Server Extensions for the Microsoft Internet Information Server, double-click the .exe file that you download from the Microsoft Web site, and follow the prompts. The FrontPage Server Extensions will be configured for your default Web site only. To install Server Extensions:
- Log on to your Microsoft Windows NT-based computer by using the administrator account or an account in the Administrators group.
- Download the FrontPage 2000 Server Extensions from the following Microsoft Web site:
- Download the Fpse2k_x86_eng.exe file (it is approximately 14 megabytes). After you download this file, run this installer from the server. A reboot is required, after which more installation tasks occur.
- After the reboot occurs and Setup finishes, click Start, point to Settings, and then click Control Panel.
- Double-click Administrative Tools, and then double-click Internet Services Manager. Click the plus "+" sign next to your server name to expand the branch.
- Right-click Default Web Site, point to All Tasks, and then click Configure Server Extensions. In the Server Extensions Configuration Wizard, click Next.
NOTE: Click No if you receive the following message:
Your web server's configuration will allow anyone to author pages on your web server once the extensions are installed. Are you sure that you want to install the extensions?
At this point, you must configure the partition where IIS resides to be NTFS, rather than FAT or FAT32. To fix this, stop installing the extensions now, and then reconfigure IIS to use an NTFS partition.
- Configure the mail server settings by typing the SMTP server name, and then click Next. Note that you only need to configure this if you will be sending e-mail messages from your Web site, and it is not required for most ASP functionality. Click Finish.
back to the top
How to Configure IIS for ASP
To configure IIS:
- Click Start, point to Programs, click Administrative Tools, and then double-click IIS.
- In the navigation pane, select the Web site you want to configure.
- Click the Home Directory tab.
- For Application Settings Permissions, if it is not already set, set the site to Script Only, and then clickOK.
NOTE: If inheritance overrides appears, select all except the root _vti_bin folder, any subweb _vti_bin folders, and any cgi-bin folders if they exist (these folders should have "execute" to work properly), and then click OK. - Ensure that the program has been created. To do so, note that if the button to the right of the program appears as remove, then you have the Web set as a program. If it appears as create, click create, and the program will be created.
- Right-click the Web, point to Tasks (or
All Tasks), and then click to check Server Extensions (click No when you are prompted to tighten security) to let it fix any problems.
back to the top
How to Test ASP Functionality By Using Visual Interdev (Optional)
After you have completed the Visual InterDev installation and the installation of FrontPage Server Extensions on the Microsoft Internet Information Server-based computer, you are ready to test the functionality of Visual InterDev. To test the functionality of Visual InterDev:
- Start Visual InterDev.
NOTE: If you have also installed Visual J++, you will see both products displayed on the first screen and in other areas throughout Visual InterDev because they share the Integrated Development Environment (IDE). - In the New Project window, verify that Visual InterDev Projects is selected, and then click New Web Project.
- Designate the project name and location, and then click Open.
- The Web Project Wizard starts at step 1 of 4 where you specify a server and mode.
- In the What server do you want to use box, type your computer name. When you receive the "What mode do you want to work in?" message, click one of the following options:
- Master mode if you want changes that are made to files to be saved to both the local files on your workstation Web program and the master files on the master Web server.
- Local mode if you want changes that are made to files to be saved to your workstation's copy of the file that resides in the local Web program and not to the master Web program. The master Web program must be updated explicitly by releasing the working copy or synchronizing the project.
- Click Next to receive the "Contacting Web server" message.
- Specify your Web by typing the project name.
- For testing purposes, click no theme or none, click Next, and then click Finish.
- Click File, and then click New file.
- Visual Interdev should be selected on the left side. Click ASP page on the right side of the New File dialog box, and then click open.
- Type <% = time %> between the body tags. Save the new ASP page file, and name it Newasp.asp.
- Right-click the Newasp.asp file that is now in the project explorer, and choose select as start page. Right-click the file, click browse with, click Internet Explorer (IEXPLORER), and then click browse.
Internet Explorer should browse to http://server name/project name/newasp.asp, and the word "time" should appear in the browser.
NOTE: If you are running Norton Anti-Virus and receive a 500-12 error message when you browse ASP pages, you may need to uninstall Norton Anti-Virus.
If you are able to successfully browse to the page, ASP is functioning and ready to be used for this Web.
back to the top
Modification Type: | Major | Last Reviewed: | 4/21/2006 |
---|
Keywords: | kbhowto kbHOWTOmaster KB301305 kbAudDeveloper |
---|
|