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


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

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

  1. #1
    Join Date
    Nov 2006
    Posts
    2

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

    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

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    What changed between when it worked and when it stopped working? Did you install any new software, such as a firewall? Did you change the network settings on the PC?
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Nov 2006
    Posts
    2
    It worked fine in our environment. But in our clients, it didnt work. We asked them if they did some updates or anything but they said they didnt do anything. So now we are like shooting in the dark. What do you think are the possible causes of this problem? We are thinking about proxy or firewall but they say they are no updates related to that or anything. Basically they didnt do anything and suddenly our application doesnt work.

Similar Threads

  1. find version & service packs
    By rperez in forum Database
    Replies: 5
    Last Post: 01-02-2009, 04:14 PM
  2. Replies: 2
    Last Post: 11-20-2006, 11:37 AM
  3. Replies: 2
    Last Post: 11-19-2005, 04:26 PM
  4. Remote Server?
    By trible777 in forum Database
    Replies: 3
    Last Post: 06-16-2005, 12:19 AM
  5. Remove exchange from a site
    By andriano in forum Enterprise
    Replies: 1
    Last Post: 10-02-2000, 03:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center