Microsoft KB Archive/266748

= ASP Code Is Displayed in Browser =

Article ID: 266748

Article Last Modified on 7/4/2007

-

APPLIES TO


 * Microsoft FrontPage 2000 Standard Edition
 * Microsoft FrontPage 2002 Standard Edition

-



This article was previously published under Q266748



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 &quot;ASP Troubleshooting Tips and Techniques&quot; on the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms972336.aspx

Additional query words: front page ASP

Keywords: kbprb KB266748

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.