Which of the following will you use to catch all unhandled ASP.NET errors that are not caught with a Try/Catch block or in a page-level error handler?

Which of the following will you use to catch all unhandled ASP.NET errors that are not caught with a
Try/Catch block or in a page-level error handler?

Which of the following will you use to catch all unhandled ASP.NET errors that are not caught with a
Try/Catch block or in a page-level error handler?

A.
Breakpoints

B.
Trace.axd

C.
SDK

D.
Global.asax

Explanation:
The Global.asax file is used to catch all unhandled ASP.NET errors while processing a request in a
Web application. This file is helpful for handling all the errors that are not caught with a Try/Catch
block or in a page-level error handler. The handler transfers control to a generic error page, which
interprets the error and displays an appropriate message.

Answer B 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 C is incorrect. SDK is used for providing a tool called Visual Debugger, which allows you to
examine an application while it is running.

Answer A is incorrect. Breakpoints are places in the code where the debugger will stop the
application, allow you to view the current data state of the application, and then step through each
line of code.



Leave a Reply 0

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