Understanding Tracing in ASP.NET 2.0
page 3 of 6
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 26944/ 40

Application Tracing

We can enable tracing for the entire application by adding tracing settings in web.config. In code Listing 2, pageOutput="false" and requestLimit="25" are used. This means trace information is stored for 25 requests, but not displayed on the page because pageOutput attribute is set to false.

Listing 2

        <compilation debug="false" />
        <authentication mode="Windows" />
      <trace enabled ="true" pageOutput ="false" requestLimit ="25" 
          traceMode ="SortByTime " />        


The page-level settings take precedence over settings in Web.config, so if enabled="false" is set in Web.config but trace="true" is set on the page, tracing will occur.

View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-07-23 12:50:02 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search