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
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications
What is the difference between user control and custom control?
Explain Life cycle of ASP.NET page when a request is made.
In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely
What are resource file and how do we generate resource file?
Can we use html in asp.net?
What is a user session?
How can we apply themes to an asp.net application?
Please brief not about xsd,xslt & xml?
Define static function?
What is a web api?
How can we communicate with each server in N-tier Architecture? and what are the methods?
What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
Describe a bubbled event and how it is used ?
What are the modes of updation in an updatepanel?