S
sck10
Hello,
I am trying to learn how to consume RSS feeds and downloaded the example
from the MSDN site:
http://msdn.microsoft.com/coding4fun/xmlforfun/simplerss/default.aspx?print=true
However, I am getting the following error at:
rssData.ReadXml(rssFeed.GetResponse().GetResponseStream()); even though I
can go directly to the site.
Any help with this would be appreciated.
Thanks, sck10
private DataSet RefreshFeed()
{
HttpWebRequest rssFeed =
(HttpWebRequest)WebRequest.Create("http://msdn.microsoft.com/vbasic/rss.xml");
DataSet rssData = new DataSet();
rssData.ReadXml(rssFeed.GetResponse().GetResponseStream());
return rssData;
}
Error Statement
+++++++++++++++++++++
System.Net.WebException was unhandled by user code
Message="Unable to connect to the remote server"
Source="System"
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at RssList.RefreshFeed() in
c:\Inetpub\wwwroot\gsttcsharp\ztest\rss\RssList.ascx.cs:line 30
at RssList.Page_Load(Object sender, EventArgs e) in
c:\Inetpub\wwwroot\gsttcsharp\ztest\rss\RssList.ascx.cs:line 12
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.BasePartialCachingControl.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I am trying to learn how to consume RSS feeds and downloaded the example
from the MSDN site:
http://msdn.microsoft.com/coding4fun/xmlforfun/simplerss/default.aspx?print=true
However, I am getting the following error at:
rssData.ReadXml(rssFeed.GetResponse().GetResponseStream()); even though I
can go directly to the site.
Any help with this would be appreciated.
Thanks, sck10
private DataSet RefreshFeed()
{
HttpWebRequest rssFeed =
(HttpWebRequest)WebRequest.Create("http://msdn.microsoft.com/vbasic/rss.xml");
DataSet rssData = new DataSet();
rssData.ReadXml(rssFeed.GetResponse().GetResponseStream());
return rssData;
}
Error Statement
+++++++++++++++++++++
System.Net.WebException was unhandled by user code
Message="Unable to connect to the remote server"
Source="System"
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at RssList.RefreshFeed() in
c:\Inetpub\wwwroot\gsttcsharp\ztest\rss\RssList.ascx.cs:line 30
at RssList.Page_Load(Object sender, EventArgs e) in
c:\Inetpub\wwwroot\gsttcsharp\ztest\rss\RssList.ascx.cs:line 12
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.BasePartialCachingControl.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)