ASP.NET -IIS 6.
0Troubleshooting
Agenda
Troubleshooting Methodology
Understanding IIS Architecture
Logging Site Activities
ASP.NET Tracing
IIS Logs
Monitoring Tools
Network Monitor
Performance Monitor
WFetch
Troubleshooting Methodology
The fundamental troubleshooting methodology has five
phases
Phase 1: Discovery. Gather information about the problem
Phase 2: Planning. Create a plan of action
Phase 3: Problem Reproduction. Reproduce the problem, or
determine that you cannot reproduce it
Phase 4: Problem Isolation. Isolate the variables that relate
directly to the problem
Phase 5: Analysis. Analyze your findings to determine the
cause of the problem.
Logging Site Activities
ASP.NET Tracing
Enable Tracing
Viewing Trace Files
Analyzing Trace files
IIS Logs
Enable Logging
Customizing Log files
Analyzing Log files
Logging Site Activities-ASP.NET Tracing
Enable Tracing
<configuration>
<system.web> <trace enabled="true"/> </system.web>
</configuration>
Value Description
enabled Set to true | false, indicates whether Tracing is enabled
for the application (default is false)
pageOutput Set to true | false, indicates whether trace information
should be rendered at the end of each page - or only
accessible via the trace.axd utility (default is false)
requestLimit Number of trace requests to store on the server (default
is 10)
traceMode Set to SortByTime | SortByCategory, indicates the
display order for Trace messages (default is SortByTime)
localOnly Set to true | false, indicates whether Tracing is enabled
for localhost users or for all users (default is true)
View Trace Files
http://localhost/myapplication/trace.axd
Logging Site Activities-ASP.NET Tracing
Analyzing Trace Files
Request Detail
Value Description
Session Id The Session Id for this request
Time of Request The time the request was made
Status Code The returned status code for this request
Request Type GET | POST
Request Encoding Encoding for the request
Response Encoding Encoding for the response
Trace Information
Value Description
Category The category for a Trace statement written to
the TraceContext
Message The message string for this Trace statement
From First (s) Time in seconds from the first Trace
statement
From Last (s) Time in seconds from the previous Trace
statement
Logging Site Activities-ASP.NET Tracing
Analyzing Trace Files
Control Hierarchy
Value Description
Control ID The ID for the control
Type The fully qualified type of the control
Render Size The size of the control's rendering in bytes
including children
ViewState Size The size of the control's viewstate in bytes
excluding children
Session State
Value Description
Key The key for an object in Session State
Type The fully qualified type of the object
Value The value of the object
Logging Site Activities-ASP.NET Tracing
Analyzing Trace Files
Application State
Value Description
Key The key for an object in Application State
Type The fully qualified type of the object
Value The value of the object
Cookies Collection
Value Description
Name The name of the cookie
Value The value of the cookie, or
sub-keys/values if multi-valued
Size The size of the cookie rendering in Bytes
Headers Collection
Value Description
Name The name of the header
Value The value of the header
Logging Site Activities-ASP.NET Tracing
Analyzing Trace Files
Form Collection
Value Description
Name The name of the form variable
Value The value of the form variable
QueryString Collection
Value Description
Name The name of the querystring variable
Value The value of the querystring variable
Server Variables
Value Description
Name The name for the server variable
Value TThe value of the server variable
Logging Site Activities – IIS Logs
Enable Logging
Logging Site Activities – IIS Logs
Demo
Enable Logging
Customizing Log files
Analyzing Log files
Using LogParser 2.2
Logging Site Activities – IIS Logs
Demo
Enable Logging
Customizing Log files
Analyzing Log files
Using LogParser 2.2
Monitoring Tools
Network Monitor
Performance Monitor
Wfetch
LogParser
Monitoring Tools – Network Monitor
Network Monitor is used to view and detect problems on
local area networks (LANs).
How to install
How it works
How to capture Data
How to Analyze Data
Monitoring Tools – Network Monitor
Network Monitor is used to view and detect problems on
local area networks (LANs).
How to install- Demo
Monitoring Tools – Network Monitor
How it works
Data sent over a network is divided into frames. Each
frame contains the following information:
Source address The address of the network adapter from which the
frame originated.
Destination address The address of the network adapter that is
meant to receive the frame. This address can also specify a group of
network adapters.
Header information Information specific to each protocol used to
send the frame.
Data The information (or a portion of it) being sent.
Monitoring Tools – Network Monitor
Network Monitor is used to view and detect problems on
local area networks (LANs).
How to capture Data- Demo
How to Analyze Data- Demo
Monitoring Tools – Other Tools
Performance Monitor - Demo
Wfetch - Demo
Open Discussion