I'm trying to use an rss feed on my asp.net website but can't get it to work. Here is the code behind the webpage:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
rssPosts.DataSource = GetRSSFeed("http://www.thepittsburghchannel.com/news/topstory.rss
Protected Function GetRSSFeed(ByVal strURL As String) As DataTable
'Get the XML data
Dim reader As XmlTextReader = New XmlTextReader(strURL)
'return a new DataSet
Dim ds As DataSet = New DataSet()
The result when I run this is an error: A column named 'category' already belongs to this DataTable: cannot set a nested table name to the same name.
I've tried many different rss feeds and all give the same result.
Any help would be greatly appreciated.