|
|
| Home >> Microsoft Certification >> MCSD >> Questions/Answers on Exam 070-305 >> QA2 |
Question:
You are the ASP.Net developer. You create an ASP.Net application containing the main page that links to several other ASP.NET pages lets say 40 pages. You need to ensure that any configuration changes affect only this application, Tracing should be enabled on all the pages of the application except the main page, trace output should be displayed up to 50 requests, and Trace output should be appended to the bottom of each page having trace output.
You are required to provide these functionalities with the least amount of development effort, which three of the following actions would you, take?
A. Add the following attribute to the Trace element of the application’s Web.config file: requestLimit=50
B. Set the TraceMode attribute of the Page directive to SortByTime for the main page.
C. Add the following element to the Web.config file:
D. Set the Trace attribute of the Page directive to true for each page except the main page.
E. Add the following attribute to the Trace element of the application’s Machine.config file: RequestLimit=50
F. Set the Trace attribute of the Page directive to false for the main page.
Correct Answer:
A, C, F
Explanation:
A. We should set the RequestLimit attribute of Trace element to 50 as we required to have 50 trace requests on the server.
C. You can enable tracing for the whole application in the web.config file in the application's root directory. We should use the trace element and set the enabled attribute to true.
F. When we enable tracing in the web.config file, the tracing is enabled for the whole application. Now to disable the tracing for a particular page of that application we can set Trace attribute of the Page directive to false for that page.
Incorrect Answers
B. TraceMode attribute is used to specify the order in which you want your trace messages to appear. However, there is no such requirement in this scenario.
D. We must disable tracing for the main page.
E. We don’t need to set some thing in Machine.config file because Machine.config file is used to set the configurations for all the .Net applications while we need to set some properties for only one application.
|
| Sponsored Links: |
|
|
| << back |
|
|
|