
Modifying Configuration Settings | 181
ASP.NET
Configuration
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Also note that some (but not all) attribute values are case-sensitive. While this
case-sensitivity is specific to the ASP.NET implementation rather than to XML,
it’s still a good idea to follow the case used in the examples when modifying
configuration files.
Modifying Trace Settings
Tracing is a nifty feature of ASP.NET that allows recording and viewing of a host of
valuable information about page requests. Like the other configuration elements
considered in this chapter, the
<trace> element appears in machine.config to set
machine-wide default values:
<!--
trace Attributes:
enabled="[true|false]" - Enable application tracing
localOnly="[true|false]" - View trace results from localhost only
pageOutput="[true|false]" - Display trace ouput on individual pages
requestLimit="[number]" - Number of trace results available in
trace.axd
traceMode="[SortByTime|SortByCategory]" - Sorts trace result
displays based on Time or Category
-->
<trace enabled="false"
localOnly="true"
pageOutput="false"
requestLimit="10"
traceMode="SortByTime"/>
The settings in machine.config turn tracing off by default, which is a good thing.
Since tracing carries performance overhead, you should enable it only when you are
actually using it—usually during