What should you do?

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The implementation of trace listeners forms part of your responsibilities at Domain.com. You are currently busy implementing a custom trace that logs errors and warnings in a Microsoft SQL Server 2005 database. The custom trace implementation must allow individual applications to determine whether errors or warnings should be logged at a given time. To this end you install the assembly that contains the trace listener in the global assembly cache (GAC) on an application server.
You need to enable all Web services on the application server to use the trace listener by default. You should ensure that your solution does not force Microsoft Windows Forms applications that run on the server to use the trace listener.

What should you do? (Each correct answer presents part of the solution. Choose two.)

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The implementation of trace listeners forms part of your responsibilities at Domain.com. You are currently busy implementing a custom trace that logs errors and warnings in a Microsoft SQL Server 2005 database. The custom trace implementation must allow individual applications to determine whether errors or warnings should be logged at a given time. To this end you install the assembly that contains the trace listener in the global assembly cache (GAC) on an application server.
You need to enable all Web services on the application server to use the trace listener by default. You should ensure that your solution does not force Microsoft Windows Forms applications that run on the server to use the trace listener.

What should you do? (Each correct answer presents part of the solution. Choose two.)

A.
The trace listener should be added to the Web.config file for each Web service.

B.
The trace listener should be added to the global Web.config file.

C.
The trace listener should be added to the machine.config file.

D.
Specify trace switches for each Web service in the Web.config file.

E.
Specify trace switches in the machine.config file.

Explanation:
The global Web.config file contains the configuration settings for all the Web applications on a computer. When the trace listener is added to the global Web.config file you will enable all Web services on the application server to use the trace listener by default. You should also specify trace switch settings in the Web.config file for each web service. This in turn will allow you to determines if errors or warnings are logged to the database on a per Web service basis.
Incorrect answers:
A: You should not add the trace listeners to the Web.config file for each Web service. You should enable the trace listener setting by default which can be done by changing the global We.config file.
C: The trace listener should not be added to the machine.config file. It will cause the Windows Forms to inherit the settings by default because the machine.config file contains configuration settings for all applications on a computer.
E: You should not specify trace switches in the machine.config file. Each Web service must define the switches to control whether errors or warnings are logged for that Web service.



Leave a Reply 0

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