Share via


AspSection Class [IIS 7 and higher]

Exposes Active Server Pages (ASP) configuration settings for ASP applications.

Syntax

class AspSection : ConfigurationSection

Methods

The following table lists the methods exposed by the AspSection class.

Name

Description

GetAllowDefinition

(Inherited from ConfigurationSection.)

GetAllowLocation

(Inherited from ConfigurationSection.)

RevertToParent

(Inherited from ConfigurationSection.)

SetAllowDefinition

(Inherited from ConfigurationSection.)

SetAllowLocation

(Inherited from ConfigurationSection.)

Properties

The following table lists the properties exposed by the AspSection class.

Name

Description

AppAllowClientDebug

A read/write boolean value. true if ASP client-side debugging is enabled; otherwise, false. The default is false.

AppAllowDebugging

A read/write boolean value. true if ASP debugging is enabled on the server; otherwise, false. The default is false.

BufferingOn

A read/write boolean value. true if the output from an ASP application will be buffered; otherwise, false. The default is true.

Cache

A read/write AspCache value that configures ASP caching.

CalcLineNumber

A read/write boolean value. true if ASP should calculate and store the line number of each executed line of code in order to provide the number in an error report; otherwise, false. The default is true.

CodePage

A read/write uint32 value that specifies the code page for the application. The default is 0.

ComPlus

A read/write AspComPlus value that configures properties related to COM+.

EnableApplicationRestart

A read/write boolean value. true if the ASP application can automatically be restarted; otherwise, false. The default is true.

EnableAspHtmlFallback

A read/write boolean value. true if an .htm file with a similar name as the requested .asp file is sent in response to a new request when the request queue is already full; otherwise, false. The default is true. The naming convention for the .htm file is the name of the .asp file with "_asp" appended. For example, if the .asp file is "hello.asp", the .htm file should be "hello_asp.htm."

EnableChunkedEncoding

A read/write boolean value. true if HTTP 1.1 chunked transfer encoding is enabled for the World Wide Web Publishing Service (WWW service); otherwise, false. The default is true.

EnableParentPaths

A read/write boolean value. true if an ASP page allows paths above the current directory; false if only paths relative to the current directory are allowed. The default is false.

ErrorsToNTLog

A read/write boolean value. true if ASP errors are written to the Windows event log; otherwise, false. The default is false.

NoteNote:
By default, ASP errors are written to the client browser and to the IIS log files.

ExceptionCatchEnable

A read/write boolean value. true if ASP pages catch component exceptions that can be caught by the Microsoft Script Debugger tool; otherwise, false. The default is true.

Lcid

A read/write uint32 value that specifies the default locale identifier for an application. The default is 0.

Limits

A read/write AspLimits value that configures properties related to ASP limits.

Location

(Inherited from ConfigurationSection.) A key property.

LogErrorRequests

A read/write boolean value. true if the Web server writes ASP errors to the application section of the Windows event log; otherwise, false. The default is true.

Path

(Inherited from ConfigurationSection.) A key property.

RunOnEndAnonymously

A read/write boolean value. true if the SessionOnEnd and ApplicationOnEnd global ASP functions should be run as the anonymous user; otherwise, false. The default is true.

ScriptErrorMessage

A read/write string value that contains the error message sent to the browser if specific debugging errors are not sent to the client. The default is "An error occurred on the server when processing the URL. Please contact the system administrator."

ScriptErrorSentToBrowser

A read/write boolean value. true if the Web server writes debugging specifics (file name, error, line number, description) to the client browser in addition to logging them to the Windows event log; otherwise, false. The default is false.

ScriptLanguage

A read/write string value that specifies the default script language for all ASP applications running on the Web server. The default is "VBScript".

SectionInformation

(Inherited from ConfigurationSection.)

Session

A read/write AspSession value that configures properties related to ASP sessions.

Subclasses

This class contains no subclasses.

Inheritance Hierarchy

ConfigurationSection

   AspSection

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

AspCache Class [IIS 7 and higher]

AspComPlus Class [IIS 7 and higher]

AspLimits Class [IIS 7 and higher]

AspSession Class [IIS 7 and higher]

ConfigurationSection Class [IIS 7 and higher]