Configuration files in .Net. Different types of configuration files

Describe the configuration files in .Net. What are different types of configuration files in .Net framework?

The Machine.Config file, which specifies the settings that are global to a particular machine.

This file is located at the following path:
\WINNT\Microsoft.NET\Framework\[Framework Version]\CONFIG\machine.config
The simplest way to add application-specific settings into an application configuration file is to use an application configuration file.
The file is an XML file and contains add elements with key and value attributes.
<?xml version="1.0" encoding="utf-8" ?>
   <add key="ApplicationTitle" value="Sample Console Application" />
   <addkey="ConnectionString"value="Server=localhost;Database=Northwind;Integrated Security= false;UserId=sa;Password=;" />
The authentication section controls the type of authentication used within your Web application Windows, Forms or Passport type of authentication can be defined.

<authentication mode="Windows" />
<allow> or <deny> tags can be used with authorization to allow or deny access to your web application to certain users or roles,
   <allow roles="Administrators,Users" />
   <deny users="*" />
Accessibility modifier "protected internal" - C#.NET
C#.Net - Describe the accessibility modifier protected internal. - Its access is limited to the types derived from the defining class in the current assembly or the assembly itself...
Difference between Debug.Write and Trace.Write - C#.Net
C#.Net - Difference between Debug.Write and Trace.Write - Debug.Write: Debug Mode, Release Mode (used while debuging a project)....
Use of virtual, sealed, override, and abstract - C#.NET
Explain the use of virtual, sealed, override, and abstract - The virtual keyword enables a class to be overridden. If it has to be prevented from being overridden...
Post your comment