system.net.webexception

Avoid exception in WebRequestObject

I am reading data from a website as follows: webRequestObj = (HttpWebRequest)WebRequest.Create("http://localhost/503errorPage.php"); theResponse = webRequestObj.GetResponse(); theResponseStream = theResponse.GetResponseStream(); theStreamReader = new StreamReader(theResponseStream); theWholePage = theStreamReader.ReadToEnd(); If I get...

Problem running web server through perl script

I am starting a web server(Cassini) on a remote machine through a perl script from my local machine. I am also specifying the virtual path, root directory settings, etc. However, I am not able to request files from the server as its giving me System.Net.WebException : The remote server returned an error: (500) Internal Server Error. ...

Getting "underlying connection was closed" on HttpWebRequest

Hello all... I have an application written in VB.NET (NOT asp.net, it is a Windows Console app). I am trying to call a url (an html page) and get back the response into a string. The response is straight JSON, no html tags whatsoever. It opens with { and closes with }. I create the HttpWebRequest object fine. Then call req.GetResponse(...

System.Net.WebException: The request was aborted: the request was cancelled.

hello, I have a WCF service that has been giving me this error under load conditions (and I cant seem to recreate the error otherwise). we've been trying to find a way aroud it for about a week now with no such luck.. actually, the error I see has two parts to it, System.ServiceModel.CommunicationException: An error: (The request ...