In earlier articles we learnt that how to enable debugging in ASP.NET , Trace the asp.net application or website to know that how the page execution is happening and which method is taking how much time. In this article we shall learn how to see consolidated trace information for all visited pages of the website.
Introduction
Tracing is a mechanism to monitor the execution of the application at development as well as in the production (live) environment. In order to demonstrate how to see consolidated trace information of all pages of the
application rather than seeing each page one by one.
In case you have missed my earlier article on "How to trace an asp.net application, click here".
WEB.CONFIG FILE
<system.web>
<compilation debug="true" targetFramework="4.0" />
<trace enabled="true" pageOutput="false" requestLimit="20"/>
</system.web>
Set pageOutput=false in the web.config file trace tag and browse the Trace.axd file from the application (Trace.axd file is the internal trace handler file and it doesn’t exists physically in the application). In case your application url is http://localhost then your trace.axd file should be browsed by writing http://localhost/trace.axd.
Here requestLimit property allows us to set the maximum number of web pages to be tracked on trace.axd file.
Click here to get hundreds of ASP.NET, jQuery, ASP.NET AJAX, HTML, CSS, JavaScript Tips and Tricks.
OUTPUT

In the above picture, we can see the output of Trace.axd file in the browser. All the trace information of the page we have visited in our application are tracked and clicking on View Details link shows the detail trace information about that page.
To know how to enable debugging in asp.net application, click here.
Thanks for reading, stay tuned for next article.