Web and machine configuration

what is bnwb / w webconfig and machine configuration

+5
source share
5 answers

Web.config is application specific.

Machine.config applies to all applications on your server.

So, if I have 3 applications on the same server that use connection strings; machine.config is the way to go.

If I have special application settings (for example, a timeout interval) that differ in different applications; put them in web.config

+5
source

Meticulous. There is a hierarchy of configuration files:

applicationHost.config is the top level IIS configuration file.

Next machine.config, which is the top-level configuration file for the server.

web.config .

web.config .

application.config.

, web.config .

, , . , web.config - , .

+7

. Microsoft .NET, machine.config web.config . Machine.config , web.config.

Machine.config , . , Production UAT, . connectionStrings Production UAT machine.config Production UAT, ASP.NET connectionString.

.NET .

+3

I would suggest reading ASP.NET Configuration Inheritance . There are other configuration levels besides machine.configand web.config, and this helps to know all the different parts that may affect your application.

+2
source

machine.config- This is a global configuration file containing default settings at the machine level, which can be overridden in web.config, which relate to a specific application.

+1
source

All Articles