本文介绍了使用WebClient.DownloadFile下载.exes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用System.Net.WebClient从Web服务器下载.exes时遇到问题。我正在测试localhost上的所有内容,相同的代码适用于所有其他类型的文件。我甚至尝试将有问题的文件的.exe扩展名重命名为.exe2,这很有效!是否有安全设置不允许我下载可执行文件(我得到的唯一错误消息是超时)?如果是这样,有没有办法覆盖它...我正在制作一个工具,通过互联网更新我的软件产品,并能够下载.exes是必不可少的


请问有什么建议吗?

I''m having a problem using the System.Net.WebClient to download .exes from a web server. I''m testing everything on localhost, and the same code works fine with all other types of file. I even tried renaming the .exe extension of the file in question to .exe2, and that worked! Is there a security setting that doesn''t let me download executables (the only error message I get is a timeout)? If so, is there a way to override it... I''m making a tool to update my software product over the Internet, and being able to download .exes is essential

Any suggestions, please?

推荐答案




这篇关于使用WebClient.DownloadFile下载.exes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 13:25