Types of configuration files and their differences ?
Answer Posted / chauhan rakesh botad
What is Web.Config File?
It is an optional XML File which stores configuration details for a specific asp.net web application.
Note: When you modify the settings in the Web.Config file, you do not need to restart the Web service for the modifications to take effect.. By default, the Web.Config file applies to all the pages in the current directory and its subdirectories.
Extra: You can use the <location> tag to lock configuration settings in the Web.Config file so that they cannot be overridden by a Web.Config file located below it. You can use the allowOverride attribute to lock configuration settings. This attribute is especially valuable if you are hosting untrusted applications on your server.
What is Machine.config File?
The Machine.Config file, which specifies the settings that are global to a particular machine. This file is located at the following path:
\WINNT\Microsoft.NET\Framework\[Framework Version]\CONFIG\machine.config
As web.config file is used to configure one asp .net web application, same way Machine.config file is used to configure the application according to a particular machine. That is, configuration done in machine.config file is affected on any application that runs on a particular machine. Usually, this file is not altered and only web.config is used which configuring applications.
You can override settings in the Machine.Config file for all the applications in a particular Web site by placing a Web.Config file in the root directory of the Web site as follows:
\InetPub\wwwroot\Web.Config
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are web server controls in asp.net?
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
What does asp.net stand for?
How can you access the properties and controls of master pages from content pages?
What are sessions used for?
Which is the parent class of the ASP.NET server control?
What is a web api? Which protocol is used in a web api?
Differentiate between namespace and assembly.
What is the displayafter property in updateprogress control?
What are the asp.net 2.0 features?
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
What is the difference between adding reference in solution explorer and adding references by using ?
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?