asp.net.ph

Skip Navigation LinksHome > ASP.NET Applications > ASP.NET Configuration > Format of ASP.NET Configuration Files > ASP.NET Configuration Sections

ASP.NET Configuration Sections

Getting Started   ASP.NET Syntax


ASP.NET has several configuration section handlers for defining configuration settings within the <system.web> section of Web.config files.

The following sections describe each of the configuration sections in detail and show the full syntax that each supports.

The tags listed below and their subtags and attributes must be well-formed XML and are case-sensitive. Note that for configuration tags and attribute names, the first character is lowercase and the first character of subsequent concatenated words, if any, is uppercase. For attribute values that are members of an enumeration, the first character is uppercase and the first character of subsequent concatenated words, if any, is uppercase. Exceptions are true and false, which are always lowercase.

Configuration Section Description
<anonymousIdentification> Configures anonymous identification for application authorization. This is required to identify entities that are not authenticated when authorization is required.
<appSettings> Configures custom settings for an application. This section can be declared at the machine, site, application, and subdirectory levels
<authentication> Configures ASP.NET authentication support.
<authorization> Configures ASP.NET authorization support.
<browserCaps> Configures the settings for the browser capabilities component.
<caching> Configures the cache settings for a Web application.
<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.
<configSections> Specifies configuration section and namespace declarations.
<configuration> The required root element in every configuration file that is used by the common language runtime and the .NET Framework applications.
<connectionStrings> Specifies a collection of database connection strings, as name/value pairs, for ASP.NET applications and features.
<customErrors> Defines custom error messages for an ASP.NET application.
<deployment> Defines configuration settings that are used to support the deployment of a Web application.
<deviceFilters> Specifies a device or a device class in the ASP.NET MobileCapabilities system based on the user agent or browser.
<globalization> Configures the globalization settings of an application.
<healthMonitoring> Configures an application for health monitoring.
<hostingEnvironment> Defines configuration settings that control the behavior of the application hosting environment.
<httpCookies> Configures properties for cookies used by a Web 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, and subdirectory level.
<identity> Controls the application identity of the Web application.
<location> Specifies the resource that child configuration settings apply to and locks configuration settings, preventing the settings from being overridden by child configuration files.
<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, and application levels, but not at the subdirectory level.
<membership> Configures parameters for managing and authenticating user accounts by using ASP.NET membership.
<mobileControls> Defines adapter sets that map ASP.NET mobile controls to corresponding adapters within the system.web section of a Web.config configuration file.
<pages> Identifies page-specific configuration settings.
<processModel> Configures the ASP.NET process model settings on Internet Information Services ( IIS ) Web server systems.
<profile> Configures parameters for managing user profile values by using the ASP.NET profile.
<roleManager> Configures an application for role management.
<securityPolicy> Defines valid mappings of named security levels to policy files. This section can be declared at the machine, site, and application levels.
<sessionPageState> Configures page view-state settings for an ASP.NET application.
<sessionState> Configures the session state HttpModule.
<siteMap> Defines configuration settings to support the navigation infrastructure for configuring, storing, and rendering site navigation.
<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.
<urlMappings> Defines a mapping that hides the real URL and maps it to a more user-friendly URL.
<webControls>
<webParts> Allows you to specify a Web Parts personalization provider, set personalization authorizations, and add custom classes that extend the WebPartTransformer class for use by Web Parts connections.
<webServices> Controls the settings of ASP.NET Web Services.
<xhtmlConformance> Configures XHTML 1.0-conforming control rendering.

See Also

ASP.NET Configuration



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note