Types of configuration files and their differences ?
Answers were Sorted based on User's Feedback
app.config-> contains application specific settings
web.config
Web.config is a security in ASP.Net application and how to
secure applications. Web.config does most of the work for
the application the who, what, where, when and how to be
authenticated.
1.This is automatically created when you create an ASP.Net
web application project.
2.This is also called application level configuration file.
3.This file inherits setting from the machine.config
Machine.config contains settings that apply to an entire
computer. This file is located in the %runtime install path%
\Config directory. Machine.config contains configuration
settings for machine-wide assembly binding, built-in
remoting channels.
1.This is automatically installed when you install Visual
Studio. Net.
2.This is also called machine level configuration file.
3.Only one machine.config file exists on a server.
4.This file is at the highest level in the configuration
hierarchy.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / chauhan rakesh botad
What is Web.Config File?
It is an optional XML File which stores configuration details for a specific asp.net web application.
Note: When you modify the settings in the Web.Config file, you do not need to restart the Web service for the modifications to take effect.. By default, the Web.Config file applies to all the pages in the current directory and its subdirectories.
Extra: You can use the <location> tag to lock configuration settings in the Web.Config file so that they cannot be overridden by a Web.Config file located below it. You can use the allowOverride attribute to lock configuration settings. This attribute is especially valuable if you are hosting untrusted applications on your server.
What is Machine.config File?
The Machine.Config file, which specifies the settings that are global to a particular machine. This file is located at the following path:
\WINNT\Microsoft.NET\Framework\[Framework Version]\CONFIG\machine.config
As web.config file is used to configure one asp .net web application, same way Machine.config file is used to configure the application according to a particular machine. That is, configuration done in machine.config file is affected on any application that runs on a particular machine. Usually, this file is not altered and only web.config is used which configuring applications.
You can override settings in the Machine.Config file for all the applications in a particular Web site by placing a Web.Config file in the root directory of the Web site as follows:
\InetPub\wwwroot\Web.Config
| Is This Answer Correct ? | 1 Yes | 0 No |
Securitywise What are the Enhancements in 2.0?
what is silver light when will we use silver light,
What are the types of validation in asp net?
can we pass values from one page to another page without redirecting to that page?
6 Answers Google, Patni, Syntel, Wipro,
what is Master pages in asp.net? what is the advantages and disadvantages?
What is gridview in asp.net?
In the context of a comparison, what is object identity versus object equivalence?
If you want to write your own dot net language, what steps you will you take care?
How do you do client-side validation in .net? How to disable validator control by client side javascript?
Describe session handling in a webfarm?
Difference between server.Execute and response.redirect ?
5 Answers Accenture, Keane India Ltd,
List the events in page life cycle.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)