GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  VB.NET
Go To First  |  Previous Question  |  Next Question 
 VB.NET  |  Question 18 of 60    Print  
What is different between Web.Config and Machine.Config and Where it will be ?

  
Total Answers and Comments: 6 Last Update: August 31, 2007     Asked by: charlesp 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 07, 2006 03:00:59   #1  
harshaa Member Since: August 2006   Contribution: 4    

RE: What is different between Web.Config and Machine.C...
the settings made in the web.config file are applied to that particular web application only whereas the settings of machine.config file are applied to the whole asp.net application.
 
Is this answer useful? Yes | No
August 17, 2006 16:10:27   #2  
ss        

RE: What is different between Web.Config and Machine.C...

A web.config file is used to configure one asp .net web application. Each Asp.net application has a web.config file.

A Machine.config file is used to configure the applications in a particular machine. Configuration done in machine.config file is affected on any application that runs on a particular machine.


 
Is this answer useful? Yes | No
August 26, 2006 08:02:16   #3  
sirishagajula Member Since: August 2006   Contribution: 2    

RE: What is different between Web.Config and Machine.C...
microsoft is providing default properties for web application with in a configuration file called machine.config.this file comes with .net framework installationc:winntmicrosoft.netv1.1.4322config-> machine.config.the developer can change properties(i.e settings) for web application by providing a configuration file for the application called web.config
 
Is this answer useful? Yes | No
October 23, 2006 08:11:34   #4  
Amit Dube        

RE: What is different between Web.Config and Machine.C...
web.config file apply setting to each web application while machine.config file apply setting to all ASP.NET application
 
Is this answer useful? Yes | No
January 05, 2007 04:34:05   #5  
swamy        

RE: What is different between Web.Config and Machine.C...

The ASP.NET Web.config file is used to define the configuration settings for an ASP.NET application. ASP.NET and the .NET Framework use .config files to define all configuration options. The .config files including the ASP.NET Web.config file are XML files. The ASP.NET application configuration settings can be changed by creating a file called Web.config and saving it in the root folder of the application.This is how the minimal Web.config file should look like:

<?xml version 1.0 encoding utf-8 ?>
<configuration>
<system.web>
</system.web>
</configuration>

The first line of the Web.config file is the same as the first line for any .config file and specifies that this is an XML document with utf-8 character encoding type.
There are 2 important characteristics of the Web.config file. The first one is that if you change your Web.config file you don?t need to re-compile your ASP.NET application.
The second one is that the Web.config file cannot be viewed in directly in a browser.

Server-wide configuration settings for the .NET Framework are defined in a file called Machine.config. The settings in the Machine.config file can be changed and those settings affect all .NET applications on the server.what if the Machine.config file defines different settings than the ones defined in your Web.config file? The settings in the Web.config file override the settings in the Machine.config file.


 
Is this answer useful? Yes | No
August 31, 2007 07:47:32   #6  
Fahad        

RE: What is different between Web.Config and Machine.C...
web.config file apply setting to each web application while machine.config file apply setting to all ASP.NET application
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape