Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP (http://www.go4expert.com/forums/asp/)
-   -   Difference between Web.Config and Machine.Config (http://www.go4expert.com/forums/difference-webconfig-machineconfig-t6704/)

ERUM 6Oct2007 10:37

Difference between Web.Config and Machine.Config
 
There are number of important settings that can be stored in the configuration file. Here are some of the most frequently used configurations, stored conveniently inside Web.config file..

1. Database connections
2. Session States
3. Error Handling
4. Security

but can any one let me know what could be stored in machine.config files[any example]
as web.config files as above

SIKO 26Oct2007 15:35

Re: Difference between Web.Config and Machine.Config
 
you can store same things in Machine.config as u do in the Web.config they are related file the difference is if ur workin in two different related projects they will have two diff web.config files but one machine.config file so u can change settings in the web.config file for each one of them and change the machine.config setting to work on both of them.. settings made on web.config file will affect the machine.config file on that project and the setting of that project results will be the ones in the web.config file... in a conclusion the machine.config file is the general configuration file for all the projects while web.config file is the sepecific configuration file for each project.

ERUM 26Oct2007 16:13

Re: Difference between Web.Config and Machine.Config
 
thanks a lot of ur reply

venkatesanj@hcl.in 31Oct2007 17:36

Re: Difference between Web.Config and Machine.Config
 
In Machine.config file you can store,

1. Connection strings
2. Membership
3. RoleManager
4. Profile
5. HttpHandlers

Its like a common repository for standard items and its over ridden by web.config file.
Regards,
Venkatesan Prabu. J

ERUM 1Nov2007 09:55

Re: Difference between Web.Config and Machine.Config
 
thanks for ur assitance


All times are GMT +5.5. The time now is 07:49.