我正在进行自动更新程序,我收到此错误:
类型的未处理异常,输入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("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