What was the difference between machine.config and
web.config files

Answer Posted / mansi

Two types of configuration files supported by ASP.Net.
Configuration files are used to control and manage the behavior of a web application.

i) Machine.config
ii)Web.config

Difference between Machine.Config and Web.Config
Machine.Config:
i) This is automatically installed when you install Visual Studio. Net.
ii) This is also called machine level configuration file.
iii)Only one machine.config file exists on a server.
iv) This file is at the highest level in the configuration hierarchy.

Web.Config:
i) This is automatically created when you create an ASP.Net web application project.
ii) This is also called application level configuration file.
iii)This file inherits setting from the machine.config

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the role of global.asax?

739


Which adapter should you use, if you want to get the data from an access database?

769


Explain the difference between page.registerclientscriptblock and page.registerstartupscript?

797


How do I create a web form?

723


What is the basic difference between asp and asp.net?

755


Explain the difference between inline and code behind - which is best in?

743


Explain what the contents of cookie?

799


What is Pre-Render event in ASP.NET?

821


What are strong names?

795


Where do the cookie state and session state information be stored?

709


Explain Areas in MVC?

835


Can I combine classic asp and asp.net pages?

731


What are Authentication and Authorization?

850


if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

2026


Define a web service in .net?

827