Web.config

Web.config

Web.config is the main settings and configuration file for an ASP.NET web application. The file is an XML document that defines configuration information regarding the web application.The web.config file contains information that control module loading, security configuration, session state configuration, and application language and compilation settings. Web.config files can also contain application specific items such as database connection strings.

Web.Config InheritanceThe initial web.config file for an application must be placed in the root directory of the web application. Sub-directories within the web application can contain their own web.config files to control individual configuration settings appropriate to the given sub-directory. ASP.Net uses a hierarchal configuration scheme that allows inheritance of configuration settings to minimize the actual web.config entries at a sub-directory.

Each web application in ASP.Net inherits their base web.config from the machine's web.config located in %SystemRoot%Microsoft.NetFrameworkv#.#.#.#CONFIG, although individual sections can be assigned in the main web.config using the directive and/or locked using the allowOverride element. [Locking Configuration Settings [http://msdn2.microsoft.com/en-us/library/55th21y4(VS.71).aspx] ]

Use in IIS 6 and IIS 7

In IIS 6, the directory that is the root of the web application needs to be configured as an Application via the the Home Directory or Virtual Directory property tab in IIS Manager for the site.

IIS 7 does not have this requirement, making configuration of web applications significantly easier.

External links

;ASP.NET Resources
* [http://msdn2.microsoft.com/en-us/library/aa719558.aspx ASP.NET Configuration]
* [http://msdn2.microsoft.com/en-us/library/ackhksh7(VS.71).aspx Format of ASP.NET Configuration Files]

References


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Web.config — Web.config  это файл, определяющий параметры для ASP.NET web приложения. По сути, файл web.config  это XML документ. В нем хранится информация о параметрах поставщиков состояний сеансов, членства, определяются ссылки на страницы ошибок …   Википедия

  • Web.config — es el archivo principal de opciones de configuración para una aplicación web en ASP.NET. El archivo es un documento XML que define información de configuración concerniente a la aplicación web. El archivo web.config contiene información que… …   Wikipedia Español

  • Web Proxy Autodiscovery Protocol — Web Proxy Auto Discovery Protocol (WPAD) (протокол автоматической настройки прокси)  метод, используемый клиентами для определения места (URL) расположения конфигурационного файла с использованием технологий DHCP и/или DNS. После того, как… …   Википедия

  • Web Proxy Autodiscovery Protocol — The Web Proxy Autodiscovery Protocol (WPAD) is a method used by clients to locate a proxy auto config file automatically and use this to configure the browser s web proxy settings.The method is available as an IETF internet draft draft ietf wrec… …   Wikipedia

  • Web Proxy Autodiscovery Protocol — Das Web Proxy Autodiscovery Protocol (WPAD) ist ein Protokoll, mit dem Web Clients wie ein Browser automatisiert zu verwendende Web Proxies innerhalb eines Computernetzwerkes finden können, indem eine Proxy autoconfiguration (PAC) Datei unter… …   Deutsch Wikipedia

  • Web Storage — HTML HTML and HTML5 Dynamic HTML XHTML XHTML Mobile Profile and C HTML Canvas element Character encodings Document Object Model Font family HTML editor HTML element HTML Frames HTML5 video HTML scrip …   Wikipedia

  • Web-Anwendung — Eine Webanwendung oder Webapplikation ist ein Computer Programm, das auf einem Webserver ausgeführt wird, wobei eine Interaktion mit dem Benutzer ausschließlich über einen Webbrowser erfolgt. Hierzu sind der Computer des Benutzers (Client) und… …   Deutsch Wikipedia

  • Web-Applikation — Eine Webanwendung oder Webapplikation ist ein Computer Programm, das auf einem Webserver ausgeführt wird, wobei eine Interaktion mit dem Benutzer ausschließlich über einen Webbrowser erfolgt. Hierzu sind der Computer des Benutzers (Client) und… …   Deutsch Wikipedia

  • ASP.NET Web Site Administration Tool — Infobox Software name = Web Site Administration Tool caption = A screenshot of Web Site Administration Tool main page developer = latest release version = latest release date = latest preview version = latest preview date = operating system =… …   Wikipedia

  • Faces-config.xml — is a key configuration file type within a JavaServer Faces (JSF) software implementation.The Java Platform, Enterprise Edition specification refers to this type of file as an Application Configuration Resource File. There may be more than one… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”