The Application that you have designed and developed needs to be deployed on an Internat Information Server (IIS) to be accessed on the internet or Intranet.
A Web server can host multiple web sites. Deploying an application includes installing.
Developers might need to write scripts to configure a web site. At some later stage, the web site administrator might need to change the settings of the web site or the Application.
Web server on which the site has been deployed to enhance the performance of the site. However, if the change involves adding values into the code, it becomes very difficult for both the developer and the admiistrator to reconfigure the application.
ASP.Net provides a rich and flexible configuration system for Web applications. While creating a Web application, you generally provide certain information that defines the behavior of the application. This information is called configuration information.
The configuration info for ASP.net applications is defined and contained in the configuration file named Web.config, which is in the XML format. Configuration files enable you to set and access configuration settings in a convenient manner without wrting scripts for configuration settings and embedding values into the code. In addition, administrators can easily customize configuration setting values asgter the deployment of the web application on the Application Web server. Benefits
The ASP.net configuration system provides the following features that help in deploying a web application efficiently:
Configuration information is stored in XML. Therefore, administrators and developers can use a standard text editor for updating and configuration settings of an application.
The default location of the configuration file is the application's root directory. Herefore, user can easily locate it.
The system is highly flexible and allows developers to store customized configurationsettings in the configuration system.
When a configuration setting is changed in the Web.config file, ASP.net automatically detects and applies the changes in the web application, therefore, you need not restart the web server.
kare vamPosted Oct 22, 2007, 2:53 AM
Why we need separate configuration files?
The Application that you have designed and developed needs to be deployed on an Internat Information Server (IIS) to be accessed on the internet or Intranet.
A Web server can host multiple web sites. Deploying an application includes installing.
Developers might need to write scripts to configure a web site. At some later stage, the web site administrator might need to change the settings of the web site or the Application.
Web server on which the site has been deployed to enhance the performance of the site. However, if the change involves adding values into the code, it becomes very difficult for both the developer and the admiistrator to reconfigure the application.
ASP.Net provides a rich and flexible configuration system for Web applications. While creating a Web application, you generally provide certain information that defines the behavior of the application. This information is called configuration information.
The configuration info for ASP.net applications is defined and contained in the configuration file named Web.config, which is in the XML format. Configuration files enable you to set and access configuration settings in a convenient manner without wrting scripts for configuration settings and embedding values into the code. In addition, administrators can easily customize configuration setting values asgter the deployment of the web application on the Application Web server.
Benefits
The ASP.net configuration system provides the following features that help in deploying a web application efficiently:
Configuration information is stored in XML. Therefore, administrators and developers can use a standard text editor for updating and configuration settings of an application.
The default location of the configuration file is the application's root directory. Herefore, user can easily locate it.
The system is highly flexible and allows developers to store customized configurationsettings in the configuration system.
When a configuration setting is changed in the Web.config file, ASP.net automatically detects and applies the changes in the web application, therefore, you need not restart the web server.