[Solved] Download Complete event handler is not being called

Looking at the documentation, DownloadFile() is synchronous, so there is no callback needed. Try instead just: using (var client = new WebClient()) { client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(DownloadFileCompleted); client.DownloadFile(“https://www.apachelounge.com/download/VC15/binaries/httpd-2.4.29-Win64-VC15.zip”, “web/data/main/web.zip”); ZipFile.ExtractToDirectory(“web/data/main/web.zip”, “web/”); } This should suffice. solved Download Complete event handler is not being called

[Solved] AWAIT multiple file downloads with DownloadDataAsync

First, you tagged your question with async-await without actually using it. There really is no reason anymore to use the old asynchronous paradigms. To wait asynchronously for all concurrent async operation to complete you should use Task.WhenAll which means that you need to keep all the tasks in some construct (i.e. dictionary) before actually extracting … Read more