I am creating an application for bulk mailing. Its on my subdomain.
The functionality i require here is I need to copy an html file located in different subdomains on my production server to my bulk mailing application.
I am using HttpWebRequest for the purpose where I take the url of the page into a text box and create a HttpWebrRequest.
The code is as simple as follows.
HttpWebRequest request = (HttpWebRequest) WebRequest.Create("http://mydomainorsubdomain.com/dir1/page.html");
and this is working fine on my local development environment that is in VS2010
but when i put code to production server it is throwing following error.
2010-08-25 15:21:00,845 ERROR Error caught : the details of the error are 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 22.214.171.124:80
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
View Complete Post