Partager via


system.web Element (ASP.NET Settings Schema)

Specifies the root element for the ASP.NET configuration section and contains configuration elements that configure ASP.NET Web applications and control how the applications behave.

<system.web> 
   <anonymousIdentification> 
   <authentication> 
   <authorization> 
   <browserCaps> 
   <caching> 
   <clientTarget> 
   <compilation> 
   <customErrors> 
   <deployment> 
   <deviceFilters> 
   <globalization> 
   <healthMonitoring> 
   <hostingEnvironment> 
   <httpCookies> 
   <httpHandlers> 
   <httpModules> 
   <httpRuntime> 
   <identity> 
   <machineKey> 
   <membership> 
   <mobileControls> 
   <pages> 
   <processModel> 
   <profile> 
   <roleManager> 
   <securityPolicy> 
   <sessionPageState> 
   <sessionState> 
   <siteMap> 
   <trace> 
   <trust> 
   <urlMappings> 
   <webControls> 
   <webParts> 
   <webServices> 
   <xhtmlConformance> 
</system.web>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description

anonymousIdentification Element (ASP.NET Settings Schema)

Configures anonymous identification for application authorization. This is required to identify entities that are not authenticated when authorization is required.

authentication Element (ASP.NET Settings Schema)

Configures ASP.NET authentication support.

authorization Element (ASP.NET Settings Schema)

Configures ASP.NET authorization support.

browserCaps Element (ASP.NET Settings Schema)

Configures the settings for the browser capabilities component.

caching Element (ASP.NET Settings Schema)

Configures the cache settings for a Web application.

clientTarget Element (ASP.NET Settings Schema)

Adds aliases for specific user agents to an internal collection of user agent aliases.

compilation Element (ASP.NET Settings Schema)

Contains all compilation settings that are used by ASP.NET.

customErrors Element (ASP.NET Settings Schema)

Defines custom error messages for an ASP.NET application.

deployment Element (ASP.NET Settings Schema)

Defines configuration settings that are used to support the deployment of a Web application.

deviceFilters Element (ASP.NET Settings Schema)

Specifies a device or a device class in the ASP.NET MobileCapabilities class based on the user agent or browser. A page or application developer can use a device filter to override control properties or to define blocks of content or templates to change layout and appearance.

globalization Element (ASP.NET Settings Schema)

Configures the globalization settings of an application.

healthMonitoring Element (ASP.NET Settings Schema)

Configures an application for health monitoring.

hostingEnvironment Element (ASP.NET Settings Schema)

Defines configuration settings that control the behavior of the application hosting environment.

httpCookies Element (ASP.NET Settings Schema)

Configures properties for cookies that are used by a Web application.

httpHandlers Element (ASP.NET Settings Schema)

Maps incoming URL requests to IHttpHandler classes.

httpModules Element (ASP.NET Settings Schema)

Adds, removes, or clears HTTP modules within an application.

httpRuntime Element (ASP.NET Settings Schema)

Configures ASP.NET HTTP run-time settings.

This section can be declared at the machine, site, application, or subdirectory level.

identity Element (ASP.NET Settings Schema)

Controls the application identity of the Web application.

machineKey Element (ASP.NET Settings Schema)

Configures keys to use for encryption and decryption of Forms authentication cookie data.

This section allows you to configure a validation key that performs message authentication checks on view-state data and Forms authentication tickets.

This section can be declared at the machine, site, or application levels but not at the subdirectory level.

membership Element (ASP.NET Settings Schema)

Configures parameters for managing and authenticating user accounts for ASP.NET membership.

mobileControls Element (ASP.NET Settings Schema)

Defines adapter sets that map ASP.NET mobile controls to corresponding adapters within the system.web section of the Web.config file.

pages Element (ASP.NET Settings Schema)

Identifies page-specific configuration settings.

processModel Element (ASP.NET Settings Schema)

Configures the ASP.NET process model settings on Internet Information Services (IIS) Web server systems.

profile Element (ASP.NET Settings Schema)

Configures parameters for managing user values by using the ASP.NET profile.

roleManager Element (ASP.NET Settings Schema)

Configures an application for role management.

This element is new in the .NET Framework version 2.0.

securityPolicy Element (ASP.NET Settings Schema)

Defines valid mappings of named security levels to policy files.

This section can be declared at the machine, site, or application levels.

sessionPageState Element (ASP.NET Settings Schema)

Configures page view-state settings for an ASP.NET application.

sessionState Element (ASP.NET Settings Schema)

Configures the session-state module.

siteMap Element (ASP.NET Settings Schema)

Configures the navigation infrastructure support for configuring, storing, and rendering site navigation.

trace Element (ASP.NET Settings Schema)

Configures the ASP.NET trace service.

trust Element (ASP.NET Settings Schema)

Configures the code access security permission set that is used to run a particular application.

This section can be declared at the machine, site, and application levels.

urlMappings Element (ASP.NET Settings Schema)

Defines a mapping that hides the real URL and maps it to a more user friendly URL.

webControls Element (ASP.NET Settings Schema)

Specifies the shared location of the client script files.

webParts

Specifies a Web Parts personalization provider, sets personalization authorizations, and adds custom classes that extend the WebPartTransformer class for use by Web Parts connections.

webServices Element (ASP.NET Settings Schema)

Controls the settings of XML Web services that are created using ASP.NET.

xhtmlConformance Element (ASP.NET Settings Schema)

Configures XHTML 1.0–conforming control rendering.

Parent Elements

Element Description

configuration

Specifies the root element in every configuration file that is used by the common language runtime and the .NET Framework applications.

See Also

Concepts

ASP.NET Configuration Overview

Other Resources

ASP.NET Configuration Settings