O'Reilly logo

Silverlight 4 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling faults when calling a service

When you're developing an application that relies on service calls from your client to your server, you'll probably want to have some kind of mechanism in place to allow feedback to the client when something goes wrong. You'll probably also want to know what went wrong so that you can take the necessary action on your client.

For this purpose, Silverlight supports Fault Exceptions when working with WCF services. In this recipe, we'll learn how to get this to work.

Getting ready

To follow along with this recipe, you can use the starter solution located in the Chapter07/HandlingFaults_Starter folder in the code bundle that is available on the Packt site. The finished solution for this recipe can be found in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required