Which one is the default configuration file in dotnet?
Web.config or machine.config or system.config.
Can anyone please tell?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.config files inherit (or override) each other in a hierarchy, usually with machine.config at the top defining the configuration machine wide. Then web.config at various levels through the file structure of your application.
See this msdn page for a discussion of the hierarchy:
http://msdn.microsoft.com/en-us/library/ms178685.aspx#scope_of_configuration_settings
If you were looking for the concept of a default there are two takes on this:
The config that sets the defaults for the machine that you’re running on is machine.config.
The config that you would normally edit to make changes (ie by default) when working on something is the web.config in the root of your project/application – you don’t generally make changes to machine.config unless absolutely necessary as it affects the operating environment for all other .net applications on the machine.