Interview answers verified by specialists.

Find interview questions and answers on this website:

See right interview answers on 30 common job interview questions

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=;" />

<authentication> The authentication section controls the type of authentication used within your Web application Windows, Forms or Passport type of authentication can be defined.

Eg: <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="*" />