I have the following code running in a windows service:
WebClient webClient = new WebClient(); webClient.Credentials = new NetworkCredential(\"me\", \"12345\
According to the msdn docs the exception could be because the method has been called simultaneously on multiple threads. The DownloadFile method also requires a completely qualified URL such as http://evilcorp.com/.