Compartilhar via


<system.web> Element

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

<configuration>
   <system.web>

<system.web>
   <authentication>
   <authorization>
   <browserCaps>
   <clientTarget>
   <compilation>
   <customErrors>
   <globalization>
   <httpHandlers>
   <httpModules>
   <httpRuntime>
   <identity>
   <machineKey>
   <pages>
   <processModel>
   <securityPolicy>
   <serviceDescriptionFormatExtensionTypes>
   <sessionState>
   <trace>
   <trust>
   <webServices>
</system.web>

Child Elements

Element Description
<authentication> Configures ASP.NET authentication support.
<authorization> Configures ASP.NET authorization support.
<browserCaps> Configures the settings for the browser capabilities component.
<clientTarget> Adds aliases for specific user agents to an internal collection of user agent aliases.
<compilation> Contains all the compilation settings used by ASP.NET.
<customErrors> Defines custom error messages for an ASP.NET application.
<globalization> Configures the globalization settings of an application.
<httpHandlers> Maps incoming URL requests to IHttpHandler classes.
<httpModules> Adds, removes, or clears HTTP modules within an application.
<httpRuntime> Configures ASP.NET HTTP runtime settings. This section can be declared at the machine, site, application, or subdirectory level.
<identity> Controls the application identity of the Web application.
<machineKey> Configures keys to use for encryption and decryption of forms authentication cookie data. This section allows developers to configure a validation key that performs message authentication checks on view state data and forms authentication tickets. It can be declared at the machine, site, or application levels, but not at the subdirectory level.
<pages> Identifies page-specific configuration settings.
<processModel> Configures the ASP.NET process model settings on Internet Information Services (IIS) Web server systems.
<securityPolicy> Defines valid mappings of named security levels to policy files. This section can be declared at the machine, site, or application levels.
<sessionState> Configures the session-state module.
<trace> Configures the ASP.NET trace service.
<trust> Configures the code access security permission set used to run a particular application. This section can be declared at the machine, site, and application levels.
<webServices> Controls the settings of XML Web services created using ASP.NET.

See Also

ASP.NET Configuration | ASP.NET Settings Schema