Difference Between Machine config and Web config file?

Posted by Sourabh07 under C# on 10/25/2012 | Points: 10 | Views : 2275 | Status : [Member] | Replies : 4
hi to all,

Can any one tell me the difference between machine config file and web config file?

Also, explain the procedure how an application will run without consuming the Web.config file????

Sourabh07


Responses

Posted by: Chavan.Harsha on: 10/25/2012 [Member] Starter | Points: 25

Up
0
Down
1) Machine config is used at machine level , Web config is used at Application level
2)Machine config automatically installed when u install visual studio .net , Web config is automatically created when u create new web application.
3) settings in Machine config are applied at sever level, whereas settings in Web config are applied at application level

Harshada

Sourabh07, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sourabh07 on: 10/25/2012 [Member] Starter | Points: 25

Up
0
Down
hi..Chavan.Harsha

can u please tell me, If I want to see machine config file, then what should I do for that???

Sourabh07

Sourabh07, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chavan.Harsha on: 10/25/2012 [Member] Starter | Points: 25

Up
0
Down
You will find machin config at following path
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config

Harshada

Sourabh07, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sourabh07 on: 10/25/2012 [Member] Starter | Points: 25

Up
0
Down
hi Chavan.Harsha,

Thanks for your response.....

but i have a doubt in mind that what is a role of machine config in an application.....

and why an application runs without web config file.....

Also, if we dont want to include web config file in our application then what will happen to all those operations like....connectionstring, appsetting, security, webparts, pages, compilation, configuration and various other tags used in the Web config file.

Sourabh07

Sourabh07, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response