PdfPrep.com

What will you do?

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:

l All unanticipated errors are logged.

l Logging is configured with a least amount of alteration to the application code.

What will you do?
A . Override the base class for all forms in the application to add the Try/Catch blocks to all the major functionalities.
B . Enable the <customErrors> element in the Web.config file and set the mode attribute to On .
C . Enable the <customErrors> element in the Web.config file and set the mode attribute to RemoteOnly.
D . Add an event handler for the Application.Error event to the Global.asax file of the applicatio n.

Answer: D

Exit mobile version