I am learning .net and in my class teacher asked me about Difference between Web.Config and Machine.Config File? I am not able to answer that question. If anybody knows the difference please give me . any help would be highly appreciated.
I am learning .net and in my class teacher asked me about Difference between Web.Config and Machine.Config File? I am not able to answer that question. If anybody knows the difference please give me . any help would be highly appreciated.
Difference between instrument.Config and Web.Config
Machine.Config:
• This file is getting installed on your machine when you install the Visual Studio. Net.
• You can as well call this file as machine level configuration file.
• A single file exists on server.
• This file comes in the higher level of hierarchy.
Web.Config:
• If you create any web application in asp.net this file gets created.
• You can as well call this file as application level configuration file.
• You can inherit the setting from machine.config using this file.
2) You can store this in web.config:
1. Database Connection
2. Session State
3. Error handling
4. Security
You can store this in machine.config:
1. Connection strings
2. Membership
3. Role Manager
4. Profile
5. HTTP Handlers
Bookmarks