使用WebClient.DownloadFile下载.exes [英] Downloading .exes with WebClient.DownloadFile

查看:52
本文介绍了使用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?

推荐答案

嗨詹姆斯,


目前我正在寻找可以提供帮助的人你呢。我们将在这里回复

,并尽快提供更多信息。

如果您对此有任何疑问,请随时在此处发布。

感谢您的理解!


祝你好运,

Gary Chang

Microsoft在线合作伙伴支持/>

安全! - www.microsoft.com/security

此帖子原样是按原样提供的。没有保证,也没有赋予任何权利。

--------------------

Hi James,

Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------


你好James,


目前我正在寻找可以帮助你的人。我们将在这里回复

,并尽快提供更多信息。

如果您对此有任何疑问,请随时在此处发布。

感谢您的理解!


祝你好运,

Gary Chang

Microsoft在线合作伙伴支持/>

安全! - www.microsoft.com/security

此帖子原样是按原样提供的。没有保证,也没有赋予任何权利。

--------------------

Hi James,

Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------


您好,


感谢您的帖子。据我了解,您遇到的问题是它使用WebClient无法下载.exe文件。如果

有任何误解,请纠正我。我想在移动前需要更多信息

前进:


1.你能在Internet Explorer中下载文件吗?


2.当你没有下载
下载时会收到什么错误/异常消息?


3.你是否连接了网络服务器通过代理?


我期待你的回复。祝你有美好的一天!


问候,


HuangTM

微软在线合作伙伴支持

MCSE / MCSD


安全! - www.microsoft.com/security

发布是按原样提供的。没有保证,也没有赋予任何权利。

Hello,

Thanks for your post. As I understand, the problem you are facing is it
fails to download .exe fils by using WebClient. Please correct me if there
is any misunderstanding. I think more information is needed before moving
forward:

1. Could you download the file in Internet Explorer?

2. What''s the error/exception message do you receive when it fails to
download?

3. Do you connect the Web Server via proxy?

I look forward to your reply. Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


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

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