This project has moved. For the latest updates, please go here.

The remote name could not be resolved:

Topics: Developer Forum, User Forum
Sep 6, 2007 at 7:36 PM
When I provide the RSS datasource with an URl that doesnt exist, or has no RSS feed, I receive the error: The remote name could not be resolved:

How can I do error handling in the with the Toolkit? and are there any examples...this actually seems like basic functionality to me.....:)
Sep 7, 2007 at 2:36 PM

petersmith wrote:
When I provide the RSS datasource with an URl that doesnt exist, or has no RSS feed, I receive the error: The remote name could not be resolved:

How can I do error handling in the with the Toolkit? and are there any examples...this actually seems like basic functionality to me.....:)


have you tried applying some sort of conditional logic in the databinding event of the RSSDataSource? This is precisely the reason I used the RSSDocument method so that I could put the databinding in a try.. catch block. :)
Sep 7, 2007 at 3:10 PM
do you perhaps have some sample code for the databdining event? :)

help is greatly appreciated
Sep 7, 2007 at 5:37 PM
Oke, I fixed it already :)
Thanks!
here's for other people's reference:

Dim rssDoc As RssToolkit.Rss.RssDocument

Try
rssDoc = RssToolkit.Rss.RssDocument.Load(New System.Uri(dt.Rows(i).Item("RSSURL").ToString))
'load success
Catch ex As Exception
Feed.RSSTitle = dt.Rows(i).Item("RSSTitle").ToString + " (" + rm.GetString("urierror") + ")"
'load failed
End Try