Skip to main content
  • 212 Accesses

Summary

Debugging and error handling is a thankless task at the best of times, but when you develop remoting applications, you have many more hurdles to overcome. There seems to be an almost endless list of things that can go wrong, such as server unavailability, incorrect configuration at the client or server, user error, or application-specific exceptions.

In this chapter, we’ve presented several techniques to help you through the mire. First, you’ve seen the common exceptions that can typically occur in .NET remoting applications. You’ve also seen how to perform error checking at the client application and in the remoting object, to detect anomalous situations at runtime. In addition, you’ve seen how to use debug and trace messages to help you understand whether the application is behaving as expected.

At the end of the chapter, we defined custom exception classes to represent application-specific errors in the remoting object. We used the custom exception class as a natural placeholder for centralized error handling in the remoting object, such as logging all exceptions to a flat file, a database, or the Windows event log.

In the next chapter, we’ll consider some best practices that, if followed, should make your remoting applications as efficient, maintainable, and reusable as they can be.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Tobin Titus, Syed Fahad Gilani, Mike Gillespie, James Hart, Benny K. Mathew, Andy Olsen, David Curran, Jon Pinnock, Robin Pars, Fabio Claudio Ferracchiati, Sandra Gopikrishna, Tejaswi Redkar, Srinivasa Sivakumar

About this chapter

Cite this chapter

(2005). Debugging and Error Handling. In: Pro .NET 1.1 Remoting, Reflection, and Threading. Apress. https://doi.org/10.1007/978-1-4302-0025-3_6

Download citation

Publish with us

Policies and ethics