944,212 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 38939
  • C# RSS
Sep 19th, 2005
0

Difference between Web.Config and Machine.Config

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cumadhu is offline Offline
19 posts
since Sep 2005
Sep 22nd, 2005
0

Re: Difference between Web.Config and Machine.Config

"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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jul 27th, 2010
0
Re: Difference between Web.Config and Machine.Config
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.
Reputation Points: 39
Solved Threads: 42
Posting Whiz in Training
pritesh2010 is offline Offline
245 posts
since Mar 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Adding rows to Datatable...
Next Thread in C# Forum Timeline: c# form combobox question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC