What is the difference between web.config and machine.config ?

Questions by chougule_archana

Showing Answers 1 - 12 of 12 Answers

suneetha

  • Dec 31st, 2005
 

the settings made in the web.config file are applied to that particular web application only whereas the settings of machine.config file are applied to the whole asp.net application.

Amarpreet S. Rajwans

  • Jan 7th, 2006
 

Web.config  file Setting of asp.net all porject mach.config are setting of  server setting and when the web side are implemented time it work all project but web.config file set all projects

  Was this answer useful?  Yes

sabir

  • Jan 13th, 2006
 

web config will be for that paticlur aplln whereas the manchine .config will for the whole machine

  Was this answer useful?  Yes

Shree

  • Feb 8th, 2006
 

Every ASP.NET application that you has a web.config file . The settings specified in this will imply only to that application.Whereas Your System will have a machine.config file in Microsoft.NET\Framework\v1.1.4322\CONFIG Folder which contains specifications and settings at a system level.

  Was this answer useful?  Yes

Nitin

  • Mar 3rd, 2006
 

Web.config file is to override the settings from the machine.config file. machine.config file settings are applied to all the webapplications residing on the server while web.config settings are application specific.

  Was this answer useful?  Yes

Markivir

  • Mar 6th, 2006
 

Web.config file is to override the settings from the machine.config file. machine.config file settings are applied to all the webapplications residing on the server while web.config settings are application specific.

  Was this answer useful?  Yes

Muralidharan

  • Apr 23rd, 2007
 

machine.config is created when you install ASP.NET in your machine
Web.config is created when you create an application

  Was this answer useful?  Yes

The MACHINE.config file contains default and machnine-specific values for all supported setting.
Machine setting are normally controlled by the system admin, and app should never be given write access to it.
An application can override most default values stored in the machine.config file by creating one or more web.config files.

At min, an app creates a WEB config file in its root folder. The web.config file is a subset of machine.config written according to the same XML achema.

  Was this answer useful?  Yes

pati.tapas

  • Dec 2nd, 2010
 

Machine.Config:-

1) This is automatically installed when you install .Net Framework.
2)Only one machine.config file can exist on a server.
3) This file is at the highest level in the configuration hierarchy.
4)Its like a common repository for standard items and its over ridden by web.config file.

3)With out the Machine.Config file Application can not be executed.

Web.Config:-

1) This is automatically created when you create an ASP.Net web application project.
2)This file inherits the settings from the machine.config
3)With out the Web.Config file Application can still be executed.

kavita

  • Jul 19th, 2011
 

machine.config file already exists when we install Microsoft visual studio while web.config file is application specific. we can add more web.config file whenever we need.

  Was this answer useful?  Yes

D.shanmugapriya

  • Jul 28th, 2011
 

web configuration file is used to config of particular one asp.net application. but machine configuration file is used to config of all asp.net application.(config mean setting or design)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions