Which of the following files controls the configuration settings for the entire computer and includes settings specific to a computer?

Which of the following files controls the configuration settings for the entire computer and includes
settings specific to a computer?

Which of the following files controls the configuration settings for the entire computer and includes
settings specific to a computer?

A.
Machine.config

B.
Web.config

C.
App.config

D.
Global.asax

Explanation:
The Machine.config file controls the configuration settings for the entire computer. It includes
settings specific to a computer, such as built-in remoting channels, machine-wide assembly binding,
and ASP .NET configuration settings. The configuration system first searches for APIs and ASP .NET
settings in the machine.config file. The default configuration of the .NET Framework is declared in
the Machine.config file.
Answer B is incorrect. 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. It contains information that control module loading, security configuration, session state
configuration, and application language and compilation settings. Web.config files can also contain
application specific items, such as database connection strings. The example of Web.config is as
follows:
<configuration>
<system.web>
<customErrors mode=”off” defaultRedirect=”mycustompage1.htm”/>
</system.web>
</configuration>
Answer C is incorrect. The App.config (Application configuration) file is a .NET configuration file that
consists of a chain of settings specific to a Windows application. This file is usually located in the root
directory of the application that is being configured according to a particular computer. Generally,
the application configuration files override the configuration settings in the Machine.config
(Machine configuration) file.



Leave a Reply 0

Your email address will not be published. Required fields are marked *