NotSupportedException, how to get through?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I formatted my PC last week and got back into working in a project. So far it was working fine, till I started getting a problem with the reader from the XML. The SyndicationFeed.Load(reader) is now getting error on the reader. Can someone help me? Its
the same project I was using before and this function is the same as I used as model. Dont have a clue of whats going on.

<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; static <span style="color:Blue; void client_DownloadStringCompleted(<span style="color:Blue; object sender, DownloadStringCompletedEventArgs e)
{
<span style="color:Blue; if (!<span style="color:Blue; string.IsNullOrEmpty(e.Result))
{
XmlReader reader = XmlReader.Create(<span style="color:Blue; new StringReader(e.Result));
SyndicationFeed feed = SyndicationFeed.Load(reader);

<span style="color:Blue; foreach (SyndicationItem sItem <span style="color:Blue; in feed.Items)
{
<span style="color:Blue; if ((sItem != <span style="color:Blue; null) && (sItem.Summary != <span style="color:Blue; null) && (sItem.Title != <span style="color:Blue; null))
{
App.Model.FeedItems.Add(
<span style="color:Blue; new ViewModel.ItemModel()
{
ItemDetails = sItem.Summary.Text,
ItemTitle = sItem.Title.Text,
ItemLink=sItem.Links[0].Uri.ToString()
}
);
}
}
}
}
[/code]
<br/>
<br/>


View the full article
 
Back
Top