954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Difference between Web.Config and Machine.Config

Hi All,
I would like to know when to use web.config and when to use machine.config?
I need the answer at the earliest.

Thanks and with regards,
Madhusudhan

cumadhu
Newbie Poster
19 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 

"web.config" is scoped to a particular directory. You use it to override machine.config for a particular application or application sub-folder. Sorry for not answering sooner; there is an ASP.NET sub-forum that you might want to use for these types of questions in the future.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

web.config is configure ur apllication only
but machine.config file related to ur all d application on ur server.
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.
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.

pritesh2010
Posting Whiz in Training
261 posts since Mar 2010
Reputation Points: 40
Solved Threads: 46
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You