ASP.NET WEB.CONFIG RELATED INTERVIEW QUESTIONS FOR EXPERIENCED
ASP.NET Web.config File related Interview Questions Experienced ASP.NET Web.config File related Interview Questions for Experienced Hey...
ASP.NET Web.config File related Interview Questions for Experienced
Hey this is one more +add article in Asp.net Interview Questions-Answers Series. This article containing the FAQ about Asp.net Web.config file, In every Asp.net Interview you must face at-least 2-3 questions about asp.net web.config file. So this is the time to check you knowledge about Web.config file.
So lets start..
Gear up your web development skills by moving your web app development/designing tools into the cloud with citrix xendesktop from CloudDesktopOnline at cheapest xendesktop cost and experience the ease of comfort to remotely access it from anywhere on any device. Visit Apps4Rent.com to know more about innovative cloud apps such as hosted SharePoint, Exchange and managed azure.
1). What is web.config file in asp.net?
Web.config is the main settings and configuration file for an ASP.NET web application. The file is an xml document that defines configuration information regarding the web application.This file stores the information about how the web application will act.
2). Does web.config file case-sensitive?
3). Web.config file is stored in which form?
Web.config files are stored in XML format.
4). Can one directory contain multiple web.config files?
No. One directory can contain only one file.
5). Can you tell the location of the root web.confit file from which all web.config file inherit ?
All the Web.config files inherit the root Web.config file available at the following location systemroot\Microsoft.NET\Framework\versionNumber\CONFIG\Web.config
6). What is the root tag of web.config file?
<configuration> tag is the root element of the Web.config file under which it has all the remaining sub elements.
7). What is the use of customErrors tag in web.config file ?
CustomErrors tag provides information about custom error messages for an ASP.NET application. The customErrors element can be defined at any level in the application file hierarchy.
The customErrors section consists of defaultRedirect and mode attributes which specify the default redirect page and the on/off mode respectively.
The subsection of customErrors section allows redirecting to specified page depending on the error status code.
400 Bad Request
404 Not Found
408 Request Timeout
8). Can you describe the functionality of <httpHandlers> tab in web.config?
HttpHandler is a code that executes when an http request for a specific resource is made to the server. For example, request an .aspx page the ASP.NET page handler is executed, similarly if an .asmx file is requested, the ASP.NET service handler is executed. An HTTP Handler is a component that handles the ASP.NET requests at a lower level than ASP.NET is capable of handling.
9). What is authentication tag/section in web.config?
ASP.NET implements additional authentication schemes using authentication providers, which are separate from and apply only after the IIS authentication schemes. ASP.NET supports the following authentication providers:
To enable an authentication provider for an ASP.NET application, use the authentication element in either machine.config or Web.config as follows:
10). For which purpose you use <appSettings> tag?
appSettings tag helps us to store the application settings information like connection strings, file paths, URLs, port numbers, custom key value pairs, etc.
11). What is the use of connectionStrings tag?
<connectionStrings> is the most common section of web.config file which allows you to store multiple connection strings that are used in the application.
12). Can you write down the C# code for reading connection string which is defined in web.config?
We have written this career set after the success of our Asp.net Interview Questions(more then 100 Q-A), So if you are prepare for .net developer interview then don't miss to read our complete set.
If you read it then you will cover 80% interview question so click here for read complete set.
Apart from that we have more then 100 SQL Interview Queries, You can read both above set after read this post. Happy learning
So don't forgot to read our very popular set
Asp.net Interview Questions(more then 100 Q-A)
100 SQL Interview Queries