"The remote server returned an error: (404) failed to find" when the Write Automatic Updater program appears

Source: Internet
Author: User

After the WIN2003 is configured, the EXE and DLL files can be downloaded while the client is running, but it is always reported that the "remote server returned an error when updating the lib file: (404) Not Found" error, do not understand how this problem will occur, go online to find the following solutions:

The following methods are found to solve the problem:

Add the MIME type to the Web site as follows:

.*
Application/octet-stream

To do this, open IIS on the server, locate the automatically upgraded folder, view the properties, select the HTTP Headers tab, find a MIME mapping option, click File Type, click New Type, add ". *" to the associated extension, add ". *" to the content type. Application/octet-stream ", Setup is complete.

Try again, OK, pass. Problem solving.

Webreq.getresponse (); The remote server returned an exception: (404) Webreq.getresponse () was not found; The remote server returned an error: (404) Not Found
Help: In doing a software automatic upgrade encountered such a problem webreq.getresponse (); The remote server returned an error: (404) Not Found!

Supplementary question: WebRequest Webreq = WebRequest.Create (Updatefileurl);
WebResponse webres = Webreq.getresponse ();
This updatefileurl is a local absolute path, but this updatefileurl is an on-line. exe file, such as Http://news.china.com/update/eu/aa.exe

------Solution--------------------
I don't have permission.
------Solution--------------------
You open the browser, enter in the address bar, to see if this exe is downloaded correctly, if not, it is basically server-side configuration problems or Restrictions
------Solution--------------------
Permissions issues
------Solution--------------------
Check if the Updatefileurl is a valid path
------Solution--------------------
Webclient.download
------Solution--------------------
The path to add HTTP

"The remote server returned an error: (404) failed to find" when the Write Automatic Updater program appears

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.