Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ASP Code Is Displayed in Browser

View products that this article applies to.


When you open an Active Server Page (ASP) in a Web browser, you see the ASP code rather than the HTML code that is generated by the Web server.

↑ Back to the top


This behavior occurs when either of the following conditions is true:
  • The ASP engine is not installed.

    The ASP engine is not installed on the Web server that compiles the ASP code. For example, if you are using Microsoft Peer Web Services for Windows NT Workstation or Microsoft Personal Web Server for Windows 95, you must install the ASP engine on the Web server.

    If you are using Internet Information Server 4.0 or later, or the Microsoft Personal Web Server 4 for Windows 98, you do not need to install the ASP engine. These Web servers have the ASP functionality built in.

    NOTE: If you are not using one of these servers, you cannot install the ASP engine.

  • Scripts are not allowed to run.

    Web pages written using ASP code are dynamic scripts, and as such they need to have script or execute access defined in order to function properly. If the folder that contains the ASP file is not configured to allow scripts to run, the file is treated as a static page.

↑ Back to the top


To resolve this problem, use the appropriate method for your situation.

Install the ASP Engine from Microsoft

Before you can use the ASP features in FrontPage, install the components listed in the following Microsoft Knowledge Base article:
312638 FP: What You Need to Use Active Server Pages (ASP) in FrontPage

Set the Folder to Allow Scripts to Run

NOTE: This method is not available if you are using a disk-based Web.
  1. Open the Web in FrontPage.
  2. On the View menu, click Folders.
  3. Right-click the folder that contains the ASP file, and then click Properties on the menu that appears.
  4. Click to select the Allow Scripts to be run check box.
  5. Click OK.

↑ Back to the top

More information

For more information about troubleshooting Active Server Pages, please see "ASP Troubleshooting Tips and Techniques" on the following Microsoft Web site:

↑ Back to the top

Keywords: KB266748, kbprb

↑ Back to the top

Article Info
Article ID : 266748
Revision : 5
Created on : 7/4/2007
Published on : 7/4/2007
Exists online : False
Views : 347