RSS feed connection failed
I have an RSS feed on our main page that connects to our corporate office to get the company news but if their site is down i get the following message and disbales that page which is our home page.
Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respondSource Error:
Line 305: 'Pull menu data Line 306: Dim rss As New XmlDocument Line 307: rss.Load(_rssUrl) Line 308: Line 309: If (_maxResults > 0) Then
how do i set a timeout for this user control so that when the site it is trying to connect to is down, it does not give me the message above but i can place an other message in that section to let the user know that the site is temporarily unavailable?
Could you please send us codebehind for RSSAggregator.ascx and RSSAggregator.ascx.vb?
so that we can take a look at it and help you.
I'd like to use your example but not sure what I need to import as in
I tried using
but it is showing that CheckValidUrl is not declared.
Never mind I decided to use the rssaggregator that is built in in CMS instead of using the user control.
Thank you for the assistance