Difference between Web.Config and Machine.Config

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

  1. ERUM

    ERUM New Member

    Joined:
    Sep 26, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    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

    Joined:
    Oct 26, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Application Developper
    Location:
    Mars
    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

    Joined:
    Sep 26, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    thanks a lot of ur reply
     
  4. venkatesanj@hcl.in

    venkatesanj@hcl.in New Member

    Joined:
    Oct 19, 2007
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    0
    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

    Joined:
    Sep 26, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    thanks for ur assitance
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice