ASP Code Is Displayed in Browser

Article translations Article translations
Article ID: 266748 - View products that this article applies to.
This article was previously published under Q266748
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

SYMPTOMS

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.

CAUSE

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.

    -or-
  • 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.

RESOLUTION

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.

MORE INFORMATION

For more information about troubleshooting Active Server Pages, please see "ASP Troubleshooting Tips and Techniques" on the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms972336.aspx

Properties

Article ID: 266748 - Last Review: October 20, 2013 - Revision: 2.3
APPLIES TO
  • Microsoft FrontPage 2000 Standard Edition
  • Microsoft FrontPage 2002 Standard Edition
Keywords: 
kbnosurvey kbarchive kbprb KB266748

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com