Web.config will changed when configuration setting change affect current Web application

Q.  You want to make a configuration setting change that will affect only the current Web application. Which file will you change?
- Published on 16 Jun 15

a. Global.asax
b. Web.config in the root of the Web application
c. Machine.config
d. All of the above

ANSWER: Web.config in the root of the Web application
 

    Discussion

  • Raj Singh   -Posted on 13 Sep 15
    Configuration setting changes in Web.config file will affect only the current Web application. Web.config file is an XML file and you can add more than one Web.config file (in different folder) in a single web application. Each Web.config applies settings to its own directory and all the child directories below it. The changes in Web.config don’t require the reboot of the web server. ASP.NET automatically detects the changes and applies them to the running ASP.NET application.
    Some of the important settings in configuration file are as follows.
    • Database connections
    • Caching settings
    • Session States
    • Error Handling
    • Security

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)