System.Net.WebException: The remote server returned an error: (404) Not Found.

I

ibaldwinjr

Hi,

I am trying to get a response from a URL using the HttpWebRequest
object. this is my code below.
httpRequest = (HttpWebRequest) WebRequest.Create(myurl);
httpRequest.Method = "GET";
httpRequest.Timeout = 90000;
httpResponse = httpRequest.GetResponse();
...................

Before it was working fine. Then suddenly we got an error. This is the
details of the error I got. The url exists coz we are able to access it
using a regular browser.

System.Net.WebException: The remote server returned an error: (404) Not
Found.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult
asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at MobileClientInstall.AppMain.submitHTTPRequest(String serverName,
String resource, String queryString)


Thanks,
Baldwin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top