exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 120 discussion

Actual exam question from Microsoft's 70-486
Question #: 120
Topic #: 1
[All 70-486 Questions]

You are developing an ASP.NET application that runs on Windows Server 2012.
An exception is preventing a page from rendering.
You need to view the trace information for the page.
Which two actions should you perform? Each correct answer presents part of the solution.

  • A. Add the following markup segment to the web.config file: <trace mostRecent= "true/">
  • B. Load the trace.axd page from the root of the website.
  • C. Add the traceEnable element to the Internet Information Service (IIS) Metabase section for the application.
  • D. Add the following markup segment to the web.config file: <trace enabled= "true/">
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
D: You can control whether tracing is enabled or disabled for individual pages. If tracing is enabled, when the page is requested, ASP.NET appends to the page a series of tables containing execution details about the page request. Tracing is disabled by default.

To enable tracing for a page -
1. Include an @ Page directive at the top of your .aspx file.
2. Add a Trace attribute and set its value to true, as shown in the following example:
<%@ Page Trace="true" %>
You can also configure tracing in the Web.config file by setting the enabled, localOnly, and pageOutput attributes of the trace Element (ASP.NET Settings
Schema)
B: To view trace details for a specific request
Navigate to Trace.axd in the root of your application.
For example, if the URL for your application is http://localhost/SampleApplication, navigate to http://localhost/SampleApplication/trace.axd to view the trace information for that application.
Select the View Details link for the request that you want to investigate.
References:
https://msdn.microsoft.com/en-us/library/94c55d08.aspx
https://msdn.microsoft.com/en-us/library/wwh16c6c.aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
arohh
4 years, 5 months ago
Answer is: trace.axd and trace enabled="true" https://docs.microsoft.com/en-us/previous-versions/aspnet/bb386420(v=vs.100)
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago