dominicwong
asked on
The remote server returned an error: (404) Not Found.
Hi experts
I got the error:
"The remote server returned an error:404 Not Found" when I do "GetResponse" with the following code.
I'd checked the content of "base.Url()" and it was fine. I could use it to access the remote file via the Internet Explorer.
Actually the code used to work but now it gave me the above error. Kindly please point to me the right direction. Thanks in Advance.
I got the error:
"The remote server returned an error:404 Not Found" when I do "GetResponse" with the following code.
var request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(base.Url());
var response = (System.Net.HttpWebResponse)request.GetResponse();
I'd checked the content of "base.Url()" and it was fine. I could use it to access the remote file via the Internet Explorer.
Actually the code used to work but now it gave me the above error. Kindly please point to me the right direction. Thanks in Advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
ASKER
I'd checked the base.url as king2002 suggested. I found out that was the source of my grief.
The problem was due to upper and lower case of the file which my program was looking for.
My program was looking for "App.msi" but the file at the remote server was named "APP.msi".
I'd checked the history of my program and the naming convention of the file.
I realized that it had been like that all the way, and it was working fine. I don't know why and since when a url becomes case sensitive.