I'm doing an auto-update program and I get this error:
An unhandled exception of type enter System.NotSupportedException occurred in System.dll
Additional information: WebClient does not support concurrent I/O operations.
Code:
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