Which of the following is an optional file on the server that contains program code for handling session and application events?

Which of the following is an optional file on the server that contains program code for handling
session and application events?

Which of the following is an optional file on the server that contains program code for handling
session and application events?

A.
Trace.axd

B.
Global.asax

C.
Svcutil.exe

D.
App.config

Explanation:
Global.asax is an optional file that contains code for responding to global events that occur in a Web
application. There can be only one Global.asax file for an application. This file resides in the root
directory of an ASP.NET application. External users cannot download or view the code written within
the
Global.asax file.
Answer C is incorrect. The Svcutil.exe tool stands for ServiceModel Metadata Utility Tool that is
used to generate service model code from metadata documents and metadata documents from
service model code. The Svcutil.exe tool can be found at the Windows SDK installation location,
particularly at C. \Program Files\Microsoft SDKs\Windows\v6.0\Bin.
Answer A is incorrect. Trace.axd is an Http Handler that can be used to view the trace details for an
application. This file resides in the application’s root directory. A request to this file through a
browser displays the trace log of the last n requests in time-order, where n is an integer determined
by the value set by requestLimit=”[n]” in the application’s configuration file.
Answer D 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 *