
Debugging ASP.NET
Sams Publishing
Published on 31. October 2001
Book
Paperback/Softback
376 pages
978-0-7357-1141-9 (ISBN)
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.
More details
Language
English
Place of publication
Indianapolis
United States
Publishing group
Pearson Education (US)
Target group
Professional and scholarly
Dimensions
Height: 177 mm
Width: 228 mm
Thickness: 18 mm
Weight
576 gr
ISBN-13
978-0-7357-1141-9 (9780735711419)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Persons
Jonathan Goodyear began his career as a software developer at Arthur Andersen after receiving a degree in accounting and information technology from Stetson University. He has also worked as a consultant for PricewaterhouseCoopers and as the Internet architect for the Home Shopping Network's e-commerce presence (http://www.hsn.com). Presently, he works as an independent consultant through his consulting practice, ASPSoft, focusing on developing web applications with ASP.NET.
Jonathan is a contributing editor for Visual Studio Magazine (http://www.vbpj.com) and is a charter member of the Visual Studio 6 MCSD certification. He is also the founder and editor of angryCoder (http://www.angrycoder.com), the first eZine written completely in ASP.NET. When not hunched over a keyboard, Jonathan likes to spend time going to theme parks with his family near his home in Orlando, Florida.
Brian Peek is a senior software developer with Rapid Application Developers, Inc. (http://www.rapiddevelopers.com/) located in Troy, New York. He specializes in developing n-tiered applications, web-based applications, wireless applications, and any other projects that happen to come along. Additionally, he is the owner and lead programmer of Ganksoft Entertainment (http://www.ganksoft.com/), a small video game?development company dedicated to producing high-quality games for video game consoles using only freely available tools and documentation. He holds a bachelor's degree in computer science from Union College in Schenectady, New York, his hometown. When not coding for work or coding games that he wishes would be published commercially, he can often be found practicing magic, learning to play piano, or playing his latest favorite video game. He can be reached at brian@ganksoft.com or brian@rapiddevelopers.com.
Brad Fox started programming in BASIC at the age of 12. Since then, computers and technology have played an integral part in his life. Brad joined the Army right out of high school and served in the 82nd Airborne Division. Since then he has gone on to become a Microsoft Certified Solution Developer. Currently, Brad is CEO of Digital Intelligence, Inc., where he spends most of his time developing cutting-edge technology for the financial industry.
Jonathan is a contributing editor for Visual Studio Magazine (http://www.vbpj.com) and is a charter member of the Visual Studio 6 MCSD certification. He is also the founder and editor of angryCoder (http://www.angrycoder.com), the first eZine written completely in ASP.NET. When not hunched over a keyboard, Jonathan likes to spend time going to theme parks with his family near his home in Orlando, Florida.
Brian Peek is a senior software developer with Rapid Application Developers, Inc. (http://www.rapiddevelopers.com/) located in Troy, New York. He specializes in developing n-tiered applications, web-based applications, wireless applications, and any other projects that happen to come along. Additionally, he is the owner and lead programmer of Ganksoft Entertainment (http://www.ganksoft.com/), a small video game?development company dedicated to producing high-quality games for video game consoles using only freely available tools and documentation. He holds a bachelor's degree in computer science from Union College in Schenectady, New York, his hometown. When not coding for work or coding games that he wishes would be published commercially, he can often be found practicing magic, learning to play piano, or playing his latest favorite video game. He can be reached at brian@ganksoft.com or brian@rapiddevelopers.com.
Brad Fox started programming in BASIC at the age of 12. Since then, computers and technology have played an integral part in his life. Brad joined the Army right out of high school and served in the 82nd Airborne Division. Since then he has gone on to become a Microsoft Certified Solution Developer. Currently, Brad is CEO of Digital Intelligence, Inc., where he spends most of his time developing cutting-edge technology for the financial industry.
Content
(NOTE: Each chapter concludes with a Summary.)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.
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.