从服务器下载exe文件 [英] Downloading an exe file from the server

查看:90
本文介绍了从服务器下载exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个新的Windows应用程序.在这种情况下,我尝试从可以放置在服务器上的文件夹中下载一个exe文件.

当我尝试将文件下载到我的系统中时,出现一条错误消息,提示为"remote server error-404"(远程服务器错误404).

任何想法都可以解决这个问题..............

Hi,
i am developing a new windows application. In that i am try to downloading an exe file from the folder which canbe placed on the server.

while i am trying to download the file into my system i got an error message as "remote server error-404"

any idea regading this one.............

推荐答案

错误"remote server error-404"表示该服务器地址是您用来下载exe的文件不存在,或者在该服务器上请求的文件不存在.

确保请求的服务器路径和服务器上的exe完整路径都存在.
The error "remote server error-404" means that either the server address that you are using in order to download the exe does not exist Or the file being requested on that server does not exist.

Make sure the server path requested and the exe full path on server - both are there.


如果您确实需要帮助,则应向我们展示您的代码,并解释为什么您认为错误消息无效,等等.
If you really want help, then you should show us your code, explain to use why you think the error message is not valid, etc.



我正在尝试通过webclient进行此操作...

webclient client = new webclient();
client.downloadfile(url,filepath);

i am trying this one through webclient......

webclient client=new webclient();
client.downloadfile(url,filepath);


这篇关于从服务器下载exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆