You are creating ASP.NET applications by using the .NET Framework 3.5.
The application occasionally experiences errors that cannot be reproduced on a test environment.
You need to ensure that the application meets the following requirements:
* All unexpected errors are logged.
* Logging is configured with a minimum amount of modification to the application code.
What should you do?
A.
Enable the <customErrors> element in the Web.config file. Set the mode attribute to On.
B.
Add an event handler for the Application.Error event to the Global.asax file of the application.
C.
Override the base class for all forms in the application to add the TRY/CATCH blocks to all the major functionalities.
D.
Configure the application to redirect to a custom error page by using the <customErrors> element in the Web.config file of the application.