By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,354 Members | 907 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,354 IT Pros & Developers. It's quick & easy.

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

P: n/a
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(IAsyncRes ult
asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at MobileClientInstall.AppMain.submitHTTPRequest(Stri ng serverName,
String resource, String queryString)
Thanks,
Baldwin

Nov 20 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
No, the url is not cached in my browser. We make sure of that.

Vadym Stetsyak wrote:
Hello, ib********@gmail.com!

Are you sure that browser isn't using cached version of the document that you
requested by that url?

iHi,

iI am trying to get a response from a URL using the HttpWebRequest
iobject. this is my code below.
ihttpRequest = (HttpWebRequest) WebRequest.Create(myurl);
ihttpRequest.Method = "GET";
ihttpRequest.Timeout = 90000;
ihttpResponse = httpRequest.GetResponse();
i..................

iBefore it was working fine. Then suddenly we got an error. This is
ithe
idetails of the error I got. The url exists coz we are able to access
iit
iusing a regular browser.

iSystem.Net.WebException: The remote server returned an error: (404)
iNot
iFound.
i at System.Net.HttpWebRequest.CheckFinalStatus()
i at System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult
iasyncResult)
i at System.Net.HttpWebRequest.GetResponse()
i at MobileClientInstall.AppMain.submitHTTPRequest(Stri ng
iserverName,
iString resource, String queryString)
iThanks,
iBaldwin
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Nov 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.