Developer forum

Forum » Development » Socket exception ved indlæsning af rss feeds

Socket exception ved indlæsning af rss feeds


Reply
Jeg har lavet et custom modul, der kan flætte rss feeds, men der opstår en socket error på denne løsning. Jeg har testet custom modulet med hentning af rss feeds fra andre DW løsninger uden problemer. Det er kun denne løsning (magn.fo) der har et problem.

Kan i hjælpe mig med dette problem ?
Mit custom modul hedder RssFeedsMerge.

Her er sourcen til fejlen: System.Net.WebException: Unable to connect to the remote server ---> 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 respond 81.95.251.201:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse() at RSSFeedsMerge.RssClient.DownloadFeed(String url) in C:\inetpub\Library\Sendistovan\RSSFeedsMerge\RSSFeedsMerge\RssClient.cs:line 297 at RSSFeedsMerge.RssClient.GetRss(Int32 count) in C:\inetpub\Library\Sendistovan\RSSFeedsMerge\RSSFeedsMerge\RssClient.cs:line 252 at RSSFeedsMerge.RSSFeedsMerge.GetContent() in C:\inetpub\Library\Sendistovan\RSSFeedsMerge\RSSFeedsMerge\RSSFeedsMerge.cs:line 42 at Dynamicweb.Frontend.Content.getModule(DataRow& ParagraphRow)

Er det noget Hostnordic kan hjælpe mig med ?

Replies

   
Reply
Hentning virker lokalt på min maskine, her opstår ingen socket exception.
 
Nicolai Høeg Pedersen
Reply

It sounds and looks like a DNS issue. You need to get hold of support to get them to help you...

www.magn.fo cannot call it self serverside because of the DNS - have support add 127.0.0.1 www.magn.fo to the servers hosts file. That should help.

 
Reply
It was the problem :) Thanks

 

You must be logged in to post in the forum