我正在进行自动更新时VB.net出错

时间:2018-05-15 18:54:20

标签: vb.net

我正在进行自动更新程序,我收到此错误:

  

类型的未处理异常,输入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

0 个答案:

没有答案