Results 1 to 6 of 6

Thread: Difference between Web.Config and Machine.Config File

  1. #1
    Join Date
    Nov 2009
    Posts
    712

    Difference between Web.Config and Machine.Config File

    Hello, I have learned the .net and one of my interview time I was asked by the interviewer that tell me Difference between Web.Config and Machine.Config File?. It is not possible for me to answer this question. If anyone knows the difference then please provide me that. I think this concept is in the asp.net as that question is asked in the asp.net interview.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Difference between Web.Config and Machine.Config File

    I don't have that much knowledge about the .net but, I know that machine. config is a file which is configuration file and it comes under the IIS. And if you consider the web.config then it is the configuration file for a application or folder. So, you can simply come to know that machine.config is having the machine level configuration. And web.config is a application/folder level configuration.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Difference between Web.Config and Machine.Config File

    web.config: As you come to know from the extension that this is the configuration file and it is used in the Asp .net web application. This file is comes into the asp.net application and it is having configuration which is required for the corresponding application. Machine.config is Whole .Net Application specific. It is also a configuration file. If you are using this file then it will applicable for the entire machine.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: Difference between Web.Config and Machine.Config File

    Difference between Machine.Config and Web.Config
    Machine.Config:
    • This file is get installed on your computer when you install the Visual Studio. Net.
    • You can also call this file as machine level configuration file.
    • A single file exist on server.
    • This file comes in the higher level of hierarchy.


    Web.Config:
    • If you create any web application in asp.net this file gets created.
    • You can also call this file as application level configuration file.
    • You can inherit the setting from machine.config with the use of this file

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Difference between Web.Config and Machine.Config File

    In web.config we can store following :
    1. Database Connection
    2. Session State
    3. Error handling
    4. Security

    In machine.config we can store following:
    1. Connection strings
    2. Membership
    3. Role Manager
    4. Profile
    5. HTTP Handlers

  6. #6
    Join Date
    May 2008
    Posts
    2,389

    Re: Difference between Web.Config and Machine.Config File

    Machine.Config:-
    1. This file comes from the Visual Studio .net installation.
    2. You can refer this file as machine level configuration file.
    3. This file you can search in the server.


    Web.Config:-
    1. This file gets created with your application.
    2. You can refer this file as application level configuration file.
    3. This file inherits setting from the machine.config

Similar Threads

  1. Replies: 8
    Last Post: 18-04-2011, 08:09 AM
  2. Replies: 5
    Last Post: 17-04-2011, 08:51 AM
  3. Config file of Crysis 2
    By Edgar Arular in forum Video Games
    Replies: 5
    Last Post: 26-03-2011, 10:22 AM
  4. How to make changes in web.config file in asp.net
    By Meditation in forum Software Development
    Replies: 6
    Last Post: 26-02-2011, 09:56 AM
  5. VB .net App.Config file in the project
    By AmolP in forum Software Development
    Replies: 3
    Last Post: 06-02-2009, 10:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,643,784.96945 seconds with 17 queries