nerdexam
GIAC

GSSP-NET · Question #119

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. The…

The correct answer is D. Add an event handler for the Application.Error event to the Global.asax file of the application. See the full explanation below for the reasoning.

Question

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create an ASP.NET Web application using .NET Framework 3.5. The application rarely experiences errors that cannot be reproduced on a test environment. You are required to ensure that the application meets the following requirements:

  • All unanticipated errors are logged.
  • Logging is configured with a least amount of alteration to the

application code. What will you do?

Options

  • AOverride the base class for all forms in the application to add the Try/Catch blocks to all the major
  • BEnable the <customErrors> element in the Web.config file and set the mode attribute to On .
  • CEnable the <customErrors> element in the Web.config file and set the mode attribute to RemoteOnly.
  • DAdd an event handler for the Application.Error event to the Global.asax file of the application.

How the community answered

(22 responses)
  • A
    9% (2)
  • B
    14% (3)
  • C
    5% (1)
  • D
    73% (16)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice