.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

machine.config is available with ASP.Net website?

Posted By :ASPEvil     Posted Date :July 24, 2014    Points :40   Category :ASP.Net 
Actually, it is not available with ASP.Net website's own directory/folder, but on which machine/computer, it is being developed Or on which web server, it is running; a machine.config file is there and this machine.config file's setting has a strong impact on the setting of that ASP.Net website.

You can also find related Interview Question to machine.config is available with ASP.Net website?  below: 

What is Machine.config?

Machine configuration file: The machine. config file contains settings that apply to the entire computer. This file is located in the %runtime install path%Config directory. There is only one
machine. config file on a computer. The Machine.Config file found in the "CONFIG" subfolder of your .NET Framework install directory (c:WINNTMicrosoft.NETFramework{Version Number}CONFIG on Windows 2000 installations). The machine.config, which can be found in the directory $WINDIR$Microsoft.NETFrameworkv1.0.3705CONFIG, is an XML-formatted configuration file that specifies configuration options for the machine. This file contains, among many other XML elements, a browserCaps element. Inside this element are a number of other elements that specify parse rules for the various User-Agents, and what properties each of these parsings supports. (More...)

Is it possible to add multiple Machine.config file?

No, it is not possible to add more than 1 machine.config file. if we want to overwrite any setting than that can be achieve with the help of web.config. (More...)

can asp.net website runs without web.config file?

Yes, and it will take the default setting from machine.config file from the machine. so web.config file is not necessary or must for running or publishing website or web application. (More...)

Web.Config vs Machine.config

Web.Config Files - It is used to maintain the all type of
configuration like that Database connection and Error log
configuration and also maintain the Authenticate of user
security of the web application

Machine.config - only one file was created in your
microsoft .net folder when you installed the microsoft
visual studio.
So, it is used to configuration for the particular server
machine. (More...)

What is the difference between "Web.config" and "Machine.Config" ?

Configuration files are used to control and manage the behavior of a web application.
1. Machine.config
2. Web.config


One Machine.config file is shared for all ASP.NET's Application. It is only one on the machine for each version of .NET Framework. If you apply anything in machine.config file then it is applied on all ASP.NET applications. Machine.config file is universal on the machine. It can be located in the %runtime install path%\Config directory.

1. This is automatically installed when you install .NET Framework or Visual Studio. Net.
2. This is also called machine level configuration file.
3. Only one machine.config file exists on a server/computer.
4. This file is at the highest level in the configuration hierarchy

Web.config file is only for particular ASP.NET application. each ASP.NET application has different file. One ASP.NET application can have more than one web.config file. But only one in one folder.

1. This is automatically created when you create an ASP.Net web application project.
2. This is also called application level configuration file or folder level configuration file.
3. This file inherits setting from the machine.config. If same setting key is defined in both Machine.Config and Web.config, the Web.Config setting is used.

Difference Between Machine.config and Web.config

Machine.config is automatically installed when you install .NET Framework or Visual Studio. Net.

Web.config is automatically created when you create an ASP.Net web application project.

Machine.config is called machine level configuration file. Only one machine.config file exists on a server.

Web.config is called application level configuration file.

Machine.config file is at the highest level in the configuration hierarchy.

Web.Config file inherits setting from the machine.config (More...)

Difference Between Machine.config and Web.config?

Machine.config->Configuration file for all the applications in the system.
Web.config->Config file for single application. (More...)

What is the difference between Machine.config and web.config?

The main difference between Machine.config and web.config is as follows:
Machine.config is machine level config file,means if you make any changes into this file, it will applicable for all application which exists on same machine.

While Web.config settings only applicable for application level.This file is best place to keep your connection string and SMTP like settings and so on. (More...)

Why this Error comes during compilation of our ASP page ?

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineOnly' beyond machine.config.

This happens because ,

In our web.config file we might have declared a section that is not configurable on our shared web hosting platform. So when we get this error we have to remove that part which is not supported in the web.config file. (More...)

Difference between "Web.config" and "Machine.Config" ?

"Web.config" applies settings to each web application, while "Machine.config" applies settings to all ASP.NET applications. (More...)

What is the difference between machine.config and web.config?

With every CLR(Common Language Runtime) of the .Net framework a machine.config file is there. This machine.config file is automatically installed with the .Net framework.

"machine.config", as its name suggests, it provides machine level configuration for the entire machine on which this machine.config file is installed with the .net framework, so it is also called machine level configuration file.

And since it provides setting for the entire machine, so there should be ONLY one machine.config file on a particular machine(computer/server).

This machine.config file is at the highest level in the configuration hierarchy, means, the .net framework will first check the configuration written with the machine.config file, then .net framework can look for any other configuration file.

There is also a web.config file which is also get installed with the .net framework, automatically.

In case of ASP.Net, a web.config file is also there with each Web Application. So when an ASP.Net website is running on a server, its settings will be the combination of the settings mentioned in machine.config file on that particular server, on which this website is running + the settings mentioned with the web.config file of that same server + the settings mentioned with the web.config file of the website's own, which is available into the website's own root directory. (More...)

Can I post any kind of document in Sharepoint Website?

You can post documents in many formats, including .pdf, .htm and .doc. In addition, if you are using Microsoft Office XP, you can save documents directly to your Windows SharePoint Services site. (More...)

How to make SharePoint website made available for public?

By default all the website created in SharePoint are private,However If you want your site to be a public Web site, enable anonymous access for the entire site. Then you can give out your URL to anybody in your business card, e-mail or any other marketing material. The URL for your Web site will be http://WebsiteName.wss.bcentral.comHence, please take special care to name your site.These Web sites are ideal for information and knowledge intensive sites and/or sites where you need to have shared Web workspace. Remember: Under each parent Web site, you can create up to 10 sub-sites each with unique permissions, settings and security rights. (More...)

Are there any browser Limitation to use Sharepoint Website?

: No But, Yes. Microsoft recommends using the following browsers for viewing and editing Windows SharePoint Services sites: Microsoft Internet Explorer 5.01 with Service Pack 2, Microsoft Internet Explorer 5.5 with Service Pack 2, Internet Explorer 6, Netscape Navigator
6.2 or later.vabnix.page. (More...)

What security levels are assigned to users for a SharePoint Website?

Security levels are assigned by the administrator who is adding the user. There are four levels by default and additional levels can be composed as necessary.
* Reader - Has read-only access to the Web site.
* Contributor - Can add content to existing document libraries and lists.
* Web Designer - Can create lists and document libraries and customize pages in the Web site.
* Administrator - Has full control of the Web site. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend