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.
Configure the application to redirect to a custom error page by using the <customErrors>
element in the Web.config file of the application
B.
Add art 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 try/catch blocks in each page method.
D.
Enable the <customErrors> element in the Web.config file. Set the mode attribute to On.