RSS datasource error on Kentico 10 - Unable to connect to the remote server

Kaveh Moghimbeigi asked on August 19, 2020 12:05

Hey guys and girls!

We have a little problem with a somewhat classic scenario:

We have two websites, both developed using Kentico 10.

  • in one, we have a standard implementation of QueryRSSFeed which generates our RSS feed.
  • the resulting page's URL is then inserted in an RSS datasource webpart and results will be shown in a basic repeater webpart.
  • all works well on development side and we have the expected result, but as both servers in live environment are behind firewalls, we get this error :

EventDescription: Message: Unable to connect to the remote server

Exception type: System.Net.WebException Stack trace: at System.Net.HttpWebRequest.GetResponse() at CMS.DocumentEngine.Web.UI.XMLDataSource.GetDataSourceFromDB()

Message: 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 respond

It seems to be a firewall issue. Both servers are in the same domain. We have already tried white listing port 7780 but the problem persists. The link is accessible through browser though! Any help would be appreciated

Recent Answers

Liam Goldfinch answered on August 20, 2020 21:39

Hi Kaveh,

Not 100% sure on your setup, but could this be TLS related?

Maybe try setting TLS 1.2 in the Application_Start event handler of Global.asax.cs using:

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.