How to see consolidated trace information of all pages in ASP.NET application

SheoNarayan
Posted by in ASP.NET category on for Intermediate level | Points: 250 | Views : 6045 red flag

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.

Page copy protected against web site content infringement by Copyscape

About the Author

SheoNarayan
Full Name: Sheo Narayan
Member Level: HonoraryPlatinum
Member Status: Administrator
Member Since: 7/8/2008 6:32:14 PM
Country: India
Regards, Sheo Narayan http://www.dotnetfunda.com

Ex-Microsoft MVP, Author, Writer, Mentor & architecting applications since year 2001. Connect me on http://www.facebook.com/sheo.narayan | https://twitter.com/sheonarayan | http://www.linkedin.com/in/sheonarayan

Login to vote for this post.

Comments or Responses

Posted by: A4u_6178 on: 7/2/2011 | Points: 25
Hi Sir,

Excellent Series of articals on Cookies and Tracing Concepts.
I request you to start a similar articals series on generic concept also....

I hope, i get to see some excellent articals on generics also.....

Login to post response

Comment using Facebook(Author doesn't get notification)