Passing Exceptions from WCF to Silverlight

After upgrading a Silverlight project to 3 I wondered if the story about passing exceptions from WCF to SL had changed. Previously, because WCF sends fault messages as 500 response codes SL could not see them. However, although I believe this is still true I spotted, Creating and Handling Faults in Silverlight, which explains how to change the end-point behaviour to return faults as 200 codes and therefore suddenly allowing Silverlight to see them. I did have a few teething problems with, mainly to do with me misreading the config soup. One quick gotcha is to remember to refresh your service reference so you can see the new exception, I mean fault, classes.
 
 
Advertisements
This entry was posted in Silverlight. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s