I have been making a downloader in vb.net everything is working fine Appart from the downloading, it takes around 10 seconds for the download to start Is this normal or am I doing something wrong? The download is being done in a thread and before when I have tried to download outside of a thread the program dosnt respond for those 10 seconds Any help is much appreciated :) Reblerebel
Code:
download = New WebClient
download.DownloadFileAsync(New Uri(File to DDR ), download)
what i used to fix it, thanks to AVD! set the web client proxy to nothing in the code
the code i had:
download = New WebClient
download.DownloadFileAsync(New Uri(File to DDR ), download)
What i added to fix it
download.proxy = Nothing
Update: to accommodate users that may use a proxy this code will get the system proxy
download.Proxy = System.Net.HttpWebRequest.DefaultWebProxy.Credentials
hope this helps!