Elements in a web.config File
The web.config file is a text file which contains XML elements that affect the behavior of an application. The following are some of the mportant tags in a web.config file.
In a Web.config file, all the configuration information for an
ASP.NET application must reside between the
and tags. This is the root node, which contains
the declaration of all other sections of the Web.config file.
This section of the Web.config file provides a way to define
custom application settings for an application. The section
can have multiple subelements.
This element sets several compilation settings for the
application. Some of the settings involve setting a default
language and debug option for the application setting. Debug
pages are larger and execute more slowly, so you should use them
only for testing purposes. This section also provides support for
the , , and subelements.
This subelement is used to add or remove namespace references for
assemblies that must be made available when compiling Web pages.
The element sets the authentication policy for
the application. Possible modes are "Windows," "Forms,"
"Passport," and "None."
The element allows configuration of page application
The element provides a means for defining custom
error messages for an ASP.NET application. This is generally
used to point users to a friendlier message than the default
error messages. The element section supports
multiple subelements that are used to define custom errors.
ASP.NET Configurations - Related Contents