W8 Phone System.Xml.XmlException with XmlReader



I am trying to make a RSS app for Windows Phone 8 but there is an error occurring whenever I try to download the RSS content using a XmlReader.



using System.Xml.Linq;
using System.Net;
using System.ServiceModel.Syndication;

XmlReaderSettings settings = new XmlReaderSettings();
settings.DtdProcessing = DtdProcessing.Ignore;

XmlReader reader = XmlReader.Create(http://ift.tt/1mc7dVz, settings);
SyndicationFeed feed = SyndicationFeed.Load(reader);
reader.Close();


The error is found on the line "XmlReader reader = XmlReader.Create...." The full error message is:


A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.ni.dll


Additional information: Cannot open 'http://ift.tt/1mc7dVz'. The Uri parameter must be a file system relative path.


Thank you for your help! :)


No comments:

Post a Comment