Dot Net Questions on Web Config
There are two configuration file Web.config and Machine.config, these configuration files are XML-based text file, there is a file named Web.config, you can appear in any Web application created in ASP.NET directory. Web.config configuration settings to all documents and on the children's application directory files and directories it is located, and all virtual subdirectories below it. Children directory option to override or modify settings specified in parent directories.
WinNTMicrosoft.NETFrameworkconfigmachine.config root configuration file for the whole machine and its all applications under the default configuration settings. But it is, IIS can not configure the browser to directly access Web.config file to ensure that their value can not become a public and errors, and display is ASP.NET to return 403: Access forbidden. In the configuration file explorere it self and run time ASP.NET uses these web.config configuration files ASP.NET hierarchy calculated for each incoming URL target request to set a unique collection main functions. Right to set the configuration, a number of documents is the same as sessionState. Session state features can be added to the session state tag.We web.config can also be set out policy, which is the default 20 minutes of the meeting, there are four models in the configuration file.
Indicates that the off-session state is not allowed.
InProc – Indicates that session state is stored locally.
To StateServer, session state is stored on the remote server's instructions.
SQLServer shows the status of that session, SQL Server is stored.
Another part is the configuration file of the connection string, or we can say, appSettings This is the configuration file, we can put our connection string in our connection string from the user's security help, because this file can not browse other features The great advantage of the same configuration, custom error, authorization, authentication, reference to the assembly file.
For more information about Dot Net Interview Questions visit – dotnetquestion.info

Leave a Reply