Vb.net 当I';我在做自动更新
我正在执行自动更新程序,出现以下错误: 类型为enter System.NotSupportedException的未处理异常 发生在System.dll中 其他信息:WebClient不支持并发I/O 行动 代码:Vb.net 当I';我在做自动更新,vb.net,Vb.net,我正在执行自动更新程序,出现以下错误: 类型为enter System.NotSupportedException的未处理异常 发生在System.dll中 其他信息:WebClient不支持并发I/O 行动 代码: Public Sub getUpdate() If System.IO.File.Exists(tool) Then System.IO.File.Delete(tool) wClinet.DownloadFileAsync(New Uri(
Public Sub getUpdate()
If System.IO.File.Exists(tool) Then
System.IO.File.Delete(tool)
wClinet.DownloadFileAsync(New Uri("https://www.dropbox.com/sh/hqkne9iz2p6rr86/AABT-iipKShPynlasYK6VVSGa?dl=1"), directorypath + ("\KingdomGaming.exe"))
Timer1.Start()
Else
System.IO.File.Delete(tool)
wClinet.DownloadFileAsync(New Uri("https://www.dropbox.com/sh/hqkne9iz2p6rr86/AABT-iipKShPynlasYK6VVSGa?dl=1"), directorypath + ("\KingdomGaming.exe"))
Timer1.Start()
End If
End Sub
您是否试图使用
WebClient
的一个实例同时下载多个文件?如果是这样,WebClient
不支持该功能。检查,不,我没有。我使用的就是这个。在这种情况下,请回答您的问题,并包括一个显示wClinet
变量生命周期的变量,并告诉我们到底是哪一行导致此异常。另外,如果Timer1
以任何方式使用wClinet
,也包括在内。