Developer forum

Forum » Development » Unable to connect to the remote server

Unable to connect to the remote server


Reply
Hi,

I am getting the below error when trying to connect to at CSV file and running the module on the actual solution.
What wonders me is that when Im running the same build on my localhost (with a link to the CSV file on the actual solution, im not getting this error?

How and what to do?

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
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.WebClient.OpenRead(Uri address)
at System.Net.WebClient.OpenRead(String address)
at CustomModules.CustomModules.servForm.CSVReader..ctor(String URL)
at CustomModules.CustomModules.servForm.Class1.makeProductTypeBox(String urlCSV)
at CustomModules.CustomModules.servForm.Class1.firstfunction(DataRow pr, PageView Pageview)
at CustomModules.Default1.Content_CMEventHandler(Object sender, CustomModuleEventArgs e)
at Dynamicweb.Frontend.Content.getModule(DataRow& ParagraphRow)

Replies

 
Reply
rjm wrote:


Hi,



I am getting the below error when trying to connect to at CSV file and running the module on the actual solution.
What wonders me is that when Im running the same build on my localhost (with a link to the CSV file on the actual solution, im not getting this error?



How and what to do?



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
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.WebClient.OpenRead(Uri address)
at System.Net.WebClient.OpenRead(String address)
at CustomModules.CustomModules.servForm.CSVReader..ctor(String URL)
at CustomModules.CustomModules.servForm.Class1.makeProductTypeBox(String urlCSV)
at CustomModules.CustomModules.servForm.Class1.firstfunction(DataRow pr, PageView Pageview)
at CustomModules.Default1.Content_CMEventHandler(Object sender, CustomModuleEventArgs e)
at Dynamicweb.Frontend.Content.getModule(DataRow& ParagraphRow)



Found the solution...for others it was HttpContext.Current.Server.MapPath

 

You must be logged in to post in the forum