Compartir a través de


asp Element [IIS Settings Schema]

Note

For more information about the asp element, see the following topic on the Microsoft IIS.net Web site: ASP <asp>.

Configures settings for Active Server Pages (ASP) applications.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

appAllowClientDebug

Optional Boolean attribute.

Specifies whether client-side debugging is enabled.

The default value is false.

appAllowDebugging

Optional Boolean attribute.

Specifies whether server-side debugging is enabled.

The default value is false.

bufferingOn

Optional Boolean attribute.

Specifies whether buffering of ASP application output is enabled.

The default value is true.

calcLineNumber

Optional Boolean attribute.

Specifies whether ASP calculates and stores the line number of each executed line of code in order to provide the number in an error report.

The default value is true.

codePage

Optional integer attribute.

Specifies the default character set for an ASP application. This value is an integer in the range from 0 to 2147483647. For example, the value 1252 sets the default character set to a Latin character set used in American English and many European alphabets.

The default value is 0.

enableApplicationRestart

Optional Boolean attribute.

Specifies whether ASP applications are automatically restarted whenever a configuration setting is changed.

The default value is true.

enableAspHtmlFallback

Optional Boolean attribute.

Specifies whether a .htm file with the same name as the requested .asp file, if it exists, will be sent to the client instead of the .asp file. This will occur in the event that the request is rejected due to a full request queue.

The default value is true.

enableChunkedEncoding

Optional Boolean attribute.

Specifies whether HTTP 1.1 chunked transfer encoding is enabled.

The default value is true.

enableParentPaths

Optional Boolean attribute.

Specifies whether ASP pages allow paths relative to the current directory or above the current directory.

The default value is false.

errorsToNTLog

Optional Boolean attribute.

Specifies whether logging of ASP errors to the Windows Event Log is enabled.

The default value is false.

exceptionCatchEnable

Optional Boolean attribute.

Specifies whether COM component exception trapping is enabled. If set to false, the Microsoft Script Debugger tool does not catch exceptions sent by the component that you are debugging.

The default value is true.

lcid

Optional integer attribute.

Specifies the default locale identifier for an ASP application. This value is an integer in the range from 0 to 2147483647.

The default value is 0.

logErrorRequests

Optional Boolean attribute.

Specifies whether ASP errors are written to the client browser and the IIS logs by default.

The default value is true.

runOnEndAnonymously

Optional Boolean attribute.

Specifies whether SessionOnEnd and ApplicationOnEnd global ASP functions are run as the anonymous user.

The default value is true.

scriptErrorMessage

Optional string attribute.

Specifies the error message that will be sent to the browser when specific debugging errors are not sent to the client.

The default value is "An error occurred on the server when processing the URL. Please contact the system administrator".

scriptErrorSentToBrowser

Optional Boolean attribute.

Specifies whether the writing of debugging specifics to the client browser is enabled.

The default value is false.

scriptLanguage

Optional string attribute.

Specifies the default script language for all ASP applications running on the Web server.

The default value is VBScript.

Child Elements

Element

Description

comPlus

Optional element.

Specifies COM+ settings.

cache

Optional element.

Specifies ASP cache settings.

limits

Optional element.

Specifies limits for various ASP properties.

session

Optional element.

Specifies ASP session state settings.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

Remarks

For more information about the asp element, see the following topic on the Microsoft IIS.net Web site: ASP <asp>.

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

See Also

Reference

comPlus Element for asp [IIS Settings Schema]

cache Element for asp [IIS Settings Schema]

limits Element for asp [IIS Settings Schema]

session Element for asp [IIS Settings Schema]