Technical-Talk banner
Home   About Us   Contact Us
Question:
You create an ASP.NET project named TestApp; one of its page named TestPage1.aspx is located in a virtual directory named TestingMac which is a child of TestApp root directory. Cookies are enabled for the page to keep track of the user modifications so that if user wants to undo modifications he/she can do it easily. After the deployment of your application to another computer named TestComp users point out that undo functionality stops working after they execute a specific sequence of actions. You need to view the cookie values after the sequence of actions to help identify the cause of the problem. You enabled the Trace output by setting the trace enabled to true in Web.config file. Now you want to display the trace output, which URL should you use?
A. HTTP://TestComp/TestApp/TestingMac/TestPage1.aspx
B. HTTP://TestComp/TestApp/TestingMac/TestPage1.aspx?Trace=true
C. HTTP://TestComp/TestApp/trace.axd
D. HTTP://TestComp/TestApp/TestPage1.aspx?trace.axd
E. HTTP://TestComp/TestApp/TestingMac/TestPage1.aspx?trace.axd
F. HTTP://TestComp/TestApp/TestPage1.aspx?trace.axd



Correct Answer:
C
Explanation:
We can use trace.axd to get application trace details. To use trace.axd, simply request trace.axd in the same application directory, not the virtual directory, that the request for the sample application was made. The output provided by tracing view, either through Trace.axd or on a page, provides six sections of detail:
• Trace information
• Control tree.
• Server variables
• Headers collection.
• Cookies collection

Google