Debugging ASP.NET

Book description

Debugging ASP.NET focuses on the various tools, techniques, and best practices associated with debugging ASP.NET web applications under Microsoft's new .NET platform. Brief descriptions of the problems with debugging previous versions of ASP are covered, as well as how the new features of ASP.NET can be exploited to their fullest to find and eliminate bugs quickly and easily. The book introduces changes to the code structure paradigm as implemented in the .NET platform, and how to structure ASP.NET code in this new paradigm to enable faster web application debugging.

Table of contents

  1. Copyright
  2. About the Authors
  3. About the Technical Reviewers
  4. Acknowledgments
  5. Tell Us What You Think
  6. Introduction
  7. ASP Debugging Basics
    1. Conceptual Framework
      1. Understanding Server-Side Events
      2. New Language Options
      3. Summary
    2. Traditional Approaches to Debugging in ASP
      1. Structure of Pre–ASP.NET Pages
      2. Problems and Shortcomings
      3. Old Strategies That Still Do the Job Well
      4. An ASP Debug Object
      5. Summary
    3. Debugging Strategies
      1. Tier Sandboxes
      2. Divide and Conquer
      3. Simple Before Complex
      4. Turtle Makes the Wiser
      5. Summary
    4. Code Structure That Eases Debugging
      1. Code Partitioning
      2. Control-of-Flow Guidelines
      3. Structured Exception Handling
      4. Global Exception Handling
      5. Summary
  8. ASP.NET Debugging Tools
    1. Conditional Compiling
      1. What Is Conditional Compiling?
      2. Other Preprocessor Directives
      3. Summary
    2. Tracing
      1. Configuration
      2. Trace Output
      3. Setting Trace Messages
      4. Trace Viewer
      5. Tracing via Components
      6. Tips for Using Trace Information
      7. Summary
    3. Visual Studio .NET Debugging Environment
      1. Introduction to Features
      2. Attaching to Processes
      3. Setting It All Up
      4. Inline Debugging of ASP.NET Pages
      5. Inline Debugging of Components
      6. Remote Debugging
      7. Summary
    4. Leveraging the Windows 2000 Event Log
      1. The Windows 2000 Event Log Defined
      2. Web Applications Can Use the Event Log
      3. The System.Diagnostics Event Log Interface
      4. Custom Event Logs
      5. Handling Different Types Of Events
      6. Access Event Log Data via the Web
      7. Summary
  9. Debugging the New ASP.NET Features
    1. Debugging Server-Side Controls
      1. Creating the Project
      2. Debugging the Control
      3. Summary
    2. Debugging Data-Bound Controls
      1. Data-Bound Controls
      2. Debugging Templates
      3. Namespace Issues
      4. XML Binding
      5. Summary
    3. Debugging User Controls
      1. User Control Basics
      2. Adding Properties and Methods
      3. Dynamic User Controls
      4. Summary
    4. Caching Issues and Debugging
      1. Output Caching
      2. The Caching API
      3. Summary
  10. Debugging Related Technologies
    1. Debugging Web Services
      1. Web Services Stumbling Blocks
      2. Error Messages
      3. Problems Working with XMLSerializer
      4. Working with Errors in SOAP
      5. Error Returning Certain Types of Data
      6. Working with Streams
      7. Tools
      8. Basic Web Services Debugging
      9. Problems Deploying Your Web Service?
      10. Summary
    2. Debugging .NET Components and HttpHandlers
      1. The Component
      2. Interfaces
      3. HttpHandlers
      4. State-Management Issues
      5. .NET Components Versus Registered COM Components
      6. Summary
    3. COM+ Issues
      1. Role-Based Security
      2. Component Services Microsoft Management Console
      3. Transaction Issues
      4. Summary
    4. Debugging ADO.NET
      1. Understanding the System.Data Namespace
      2. Catching SQL Errors
      3. New Connection Components
      4. Issues with the DataReader Class
      5. Working with Transactions
      6. Error Codes and How to Debug Them
      7. Common Pitfalls
      8. SQL ADO.NET Objects Versus OleDb ADO.NET Objects
      9. Summary
  11. Issues that Arise When Migrating from ASP to ASP.NET
    1. Moving from ASP to ASP.NET
    2. Moving from VBScript to Visual Basic
    3. Opting for C#
    4. Summary

Product information

  • Title: Debugging ASP.NET
  • Author(s): Jonathan Goodyear, Brian Peek, Brad Fox
  • Release date: October 2001
  • Publisher(s): Sams
  • ISBN: 9780735711419