Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Difference between Web.Config and Machine.Config File

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-01-2010
Member
 
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.

Reply With Quote
  #2  
Old 23-01-2010
Member
 
Join Date: May 2008
Posts: 2,007
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.
Reply With Quote
  #3  
Old 23-01-2010
Member
 
Join Date: Apr 2008
Posts: 2,000
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.
Reply With Quote
  #4  
Old 23-01-2010
Member
 
Join Date: May 2008
Posts: 2,290
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
Reply With Quote
  #5  
Old 23-01-2010
Member
 
Join Date: Oct 2005
Posts: 2,389
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
Reply With Quote
  #6  
Old 23-01-2010
Member
 
Join Date: May 2008
Posts: 2,382
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Difference between Web.Config and Machine.Config File"
Thread Thread Starter Forum Replies Last Post
Config.xml not specified. Valid config.xml file must be authored when deploying '(null)' Error 25004 Jaiya Operating Systems 8 18-04-2011 08:09 AM
Error parsing c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config on startup Jaiya Operating Systems 5 17-04-2011 08:51 AM
Config file of Crysis 2 Edgar Arular Video Games 5 26-03-2011 10:22 AM
How to make changes in web.config file in asp.net Meditation Software Development 6 26-02-2011 08:56 AM
VB .net App.Config file in the project AmolP Software Development 3 06-02-2009 09:26 PM


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