Understand Configuration Files:-
Lesson Overview:-
Machine.config files
Machine-level settings
Web.config files
Application- and directory-level settings
Machine.config:-
The Machine.config file is located in the following directory:
C:\Windows\Microsoft .NET \Framework\version\CONFIG\Machine.config.
Advantage: Storing settings in the Machine.config file can make your system easier to maintain because you have only one configuration file to search, edit, and maintain.
Disadvantage: When you deploy a Web application to a new server, the Web application settings that are in the Machine.config file are not copied to the new Web server.
Web.config:-
Use the Web.config file to share information and settings between Web pages.
A single Web.config file is typically located in the root folder of the Web application.
Place additional Web.config files in the folder of the virtual directory to which they belong.
Lesson Review:-
What is the use of machine.config ?
What is the use of web.config ?
Lesson Overview:-
Machine.config files
Machine-level settings
Web.config files
Application- and directory-level settings
Machine.config:-
The Machine.config file is located in the following directory:
C:\Windows\Microsoft .NET \Framework\version\CONFIG\Machine.config.
Advantage: Storing settings in the Machine.config file can make your system easier to maintain because you have only one configuration file to search, edit, and maintain.
Disadvantage: When you deploy a Web application to a new server, the Web application settings that are in the Machine.config file are not copied to the new Web server.
Web.config:-
Use the Web.config file to share information and settings between Web pages.
A single Web.config file is typically located in the root folder of the Web application.
Place additional Web.config files in the folder of the virtual directory to which they belong.
Lesson Review:-
What is the use of machine.config ?
What is the use of web.config ?