Thursday, May 20, 2010

Step by Step Guide to trace the ASP.NET application for Beginners

I am new to ASP.NET and while learning Tracing i found that there are few resources available for the tracing for beginners which should cover important topics. Even i searched the code project but not able to get good start up tutorial so i decided to write the tutorial for beginners.

Content

Types of tracing  
Writing Custom Trace Information
Page.Trace Vs System.Diagnostics.Trace
Integrate System.Diagnostics with ASPX Page (Routing all Trace information to web page)
trace.axd file
Creating Custom Trace Listeners
Saving Trace information in File  
Types of tracing  

In ASP.NET there two types of Tracing

Application Level
Page Level
Page level Tracing takes the precedence over the Application Level tracing.

Lets start with creating new website.

In web.config add following entries to enable Application level tracing below System.web element.

 <trace pageOutput="true"

enabled="true"
requestLimit="10"
localOnly="false"
mostRecent="true"
traceMode="SortByTime"
/>

Read more: Codeproject

Posted via email from jasper22's posterous