SCREENCAST: Exposing/Consuming RSS/ATOM using WCF 3.5 & Silverlight 2

In this screencast, I show you how easy it is to expose RSS and Atom feeds using the new Web Programming Model (REST) features, classes in the new System.ServiceModel.Syndication namespace, and LINQ to SQL in the .NET Framework 3.5.  Then, you will see how you can use classes from the System.ServiceModel.Syndication namespace to consume RSS and Atom feeds using Silverlight 2.

Screencast: Exposing/Consuming RSS/ATOM using WCF 3.5 & Silverlight 2

Source code:

Comments (2)

  1. SL says:

    I do it,but has a err,show:

    An exception of type ‘System.Reflection.TargetInvocationException’ occurred in System.dll but was not handled in user code

    Additional information: [Async_ExceptionOccurred]


    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See

  2. devkeydet says:

    Can you elaborate on what you mean by "I do it."  I am not exactly sure what you are doing.  It would be great if you can give more detail / specifics.

    Without knowing specifically what you are doing, I can go on a hunch and guess that you are having cross domain communication issues.  By default, Silverlight 2 does not allow cross domain calls.  If the service you are trying to call is in a separate project or out on the internet and it does not have a clientaccesspolicy.xml or crossdomain.xml file published, then you will not be able to make your network call.  A combination of the following three blog posts should help get you on your way.  I suspect the second & third actually have a solution to your problem.