Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Forum » x-Forum » Question

Difference between web config and machine config

What is the difference between web config and machine config?

Posted by shraddhamane 2019-01-22 04:19:58

The machine config file is common file for all websites on the server while web config file is for any particular website.

C++ user image Admin posted 2019-01-22 18:15:30

Thank you for this guidance..

C++ user image shraddhamane posted 2019-01-22 23:17:36


It is a configuration file, which is used in web application and it can be an ASP.NET project or MVC project. Some project contains multiple web.config file inside the same project but with different folder. They have their unique benefits. You can create several web.config file in each folder with their unique benefits as per your project requirement.

<?xml version="1.0" encoding="utf-8" ?>  



It is also a special type of configuration file which is basically used with Windows Services, Windows application, Console Apps or it can be WPF application or any others.

It parses at compile time; it means if you edit the app.config when program is running, then you need to restart the application to reload the configuration setting into the program.

<?xml version="1.0"?>  
        <add name="MyKey"   
             connectionString="Data Source=localhost;Initial Catalog=ABC;"  

Sanjay Vaniya
.Net Developer at @ifourtechnolab

C++ user image sanjay.vaniya posted 2019-05-08 22:44:43

Please login to comment

Log In

Ask New Question