Debugging ASP.NET
暫譯: ASP.NET 除錯技巧

Jonathan Goodyear, Brian Peek, Brad Fox

  • 出版商: New Riders
  • 出版日期: 2001-10-24
  • 售價: $1,520
  • 貴賓價: 9.5$1,444
  • 語言: 英文
  • 頁數: 376
  • 裝訂: Paperback
  • ISBN: 0735711410
  • ISBN-13: 9780735711419
  • 相關分類: .NETASP.NET
  • 已絕版

買這商品的人也買了...

相關主題

商品描述

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

 

I. ASP DEBUGGING BASICS.

1. Conceptual Framework.
Understanding Server-Side Events. New Language Options.

2. Traditional Approaches to Debugging in ASP
Structure of Pre-ASP.NET Pages. Problems and Shortcomings. Old Strategies That Still Do the Job Well. An ASP Debug Object.

3. Debugging Strategies.
Tier Sandboxes. Divide and Conquer. Simple Before Complex. Turtle Makes the Wiser.

4. Code Structure That Eases Debugging.
Code Partitioning. Control-of-Flow Guidelines. Structured Exception Handling. Global Exception Handling.

II. ASP.NET DEBUGGING TOOLS.

5.Conditional Compiling.
What Is Conditional Compiling? Other Preprocessor Directives.

6. Tracing.
Configuration. Trace Output. Setting Trace Messages. Trace Viewer. Tracing via Components. Tips for Using Trace Information.

7. Visual Studio .NET Debugging Environment.
Introduction to Features. Attaching to Processes. Setting It All Up Inline Debugging of ASP.NET Pages. Inline Debugging of Components. Remote Debugging.

8. Leveraging the Windows 2000 Event Log.
The Windows 2000 Event Log Defined. Web Applications Can Use the Event Log. The System.Diagnostics Event Log Interface. Custom Event Logs Handling Different Types Of Events. Access Event Log Data via the Web.

III. DEBUGGING THE NEW ASP.NET FEATURES.

9. Debugging Server-Side Controls.
Creating the Project. Debugging the Control.

10. Debugging Data-Bound Controls.
Data-Bound Controls. Debugging Templates. Namespace Issues. XML Binding.

11. Debugging User Controls User Control Basics.
Adding Properties and Methods. Dynamic User Controls.

12. Caching Issues and Debugging.
Output Caching. The Caching API.

IV. DEBUGGING RELATED TECHNOLOGIES.

13. Debugging Web Services.
Web Services Stumbling Blocks. Error Messages. Problems Working with XMLSerializer. Working with Errors in SOAP. Error Returning Certain Types of Data. Working with Streams. Tools. Basic Web Services Debugging Problems Deploying Your Web Service?

14. Debugging .NET Components and HttpHandlers.
The Component. Interfaces. HttpHandlers. State-Management Issues. .NET Components Versus Registered COM Components.

15. COM+ Issues.
Role-Based Security. Transaction Issues.

16. Debugging ADO.NET.
Understanding the System.Data Namespace. Catching SQL Errors New Connection Components. Issues with the DataReader Class. Working with Transactions. Error Codes and How to Debug Them. Common Pitfalls. SQL ADO.NET Objects Versus OleDb ADO.NET Objects.

V. APPENDIX.

Appendix A. Issues That Arise When Migrating from ASP to ASP.NET.
Moving from ASP to ASP.NET. Moving from VBScript to Visual Basic. Opting for C#.

Index.

商品描述(中文翻譯)

調試 ASP.NET 專注於與在微軟新 .NET 平台下調試 ASP.NET 網頁應用程式相關的各種工具、技術和最佳實踐。簡要描述了調試舊版本 ASP 的問題,以及如何充分利用 ASP.NET 的新功能來快速輕鬆地找到和消除錯誤。本書介紹了在 .NET 平台中實施的代碼結構範式的變化,以及如何在這一新範式中結構化 ASP.NET 代碼,以便加快網頁應用程式的調試速度。

目錄

I. ASP 調試基礎
1. 概念框架
理解伺服器端事件。新的語言選項。
2. 傳統的 ASP 調試方法
Pre-ASP.NET 頁面的結構。問題和缺陷。仍然有效的舊策略。一個 ASP 調試對象。
3. 調試策略
階層沙盒。分而治之。簡單優於複雜。烏龜使人更明智。
4. 便於調試的代碼結構
代碼分區。控制流程指導。結構化異常處理。全局異常處理。

II. ASP.NET 調試工具
5. 條件編譯
什麼是條件編譯?其他預處理指令。
6. 追蹤
配置。追蹤輸出。設置追蹤消息。追蹤檢視器。通過組件進行追蹤。使用追蹤信息的提示。
7. Visual Studio .NET 調試環境
功能介紹。附加到進程。設置所有內容。ASP.NET 頁面的內聯調試。組件的內聯調試。遠程調試。
8. 利用 Windows 2000 事件日誌
Windows 2000 事件日誌的定義。網頁應用程式可以使用事件日誌。System.Diagnostics 事件日誌介面。自定義事件日誌處理不同類型的事件。通過網頁訪問事件日誌數據。

III. 調試新的 ASP.NET 功能
9. 調試伺服器端控制項
創建項目。調試控制項。
10. 調試數據綁定控制項
數據綁定控制項。調試模板。命名空間問題。XML 綁定。
11. 調試用戶控制項
用戶控制項基礎。添加屬性和方法。動態用戶控制項。
12. 緩存問題和調試
輸出緩存。緩存 API。

IV. 調試相關技術
13. 調試網頁服務
網頁服務的障礙。錯誤消息。與 XMLSerializer 的問題。處理 SOAP 中的錯誤。返回某些類型數據的錯誤。處理流。工具。基本網頁服務調試問題。部署您的網頁服務?
14. 調試 .NET 組件和 HttpHandlers
組件。介面。HttpHandlers。狀態管理問題。.NET 組件與註冊的 COM 組件之間的區別。
15. COM+ 問題
基於角色的安全性。事務問題。
16. 調試 ADO.NET
理解 System.Data 命名空間。捕獲 SQL 錯誤。新的連接組件。DataReader 類的問題。處理事務。錯誤代碼及其調試方法。常見陷阱。SQL ADO.NET 對象與 OleDb ADO.NET 對象之間的區別。

V. 附錄
附錄 A. 從 ASP 遷移到 ASP.NET 時出現的問題
從 ASP 遷移到 ASP.NET。從 VBScript 遷移到 Visual Basic。選擇 C#。
索引。