Which two actions should you perform?

You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending.

Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending.

Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

A.
Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.

B.
Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.

C.
Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.

D.
In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.



Leave a Reply 0

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