1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Difference between Web.Config and Machine.Config

Discussion in 'ASP' started by ERUM, Oct 6, 2007.

  1. ERUM

    ERUM New Member

    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
     
  2. SIKO

    SIKO New Member

    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.
     
  3. ERUM

    ERUM New Member

    thanks a lot of ur reply
     
  4. venkatesanj@hcl.in

    venkatesanj@hcl.in New Member

    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
     
  5. ERUM

    ERUM New Member

    thanks for ur assitance
     

Share This Page