C#.net| webclinet dont suppot I/O.

12/02/2012 01:43 theoners#1
hi there.
Code:
                    while (i <= ServID)
                    {
                        label1.Text= "Downloading Update " + i + " Of " + ServID;
                        down.DownloadFileAsync(new Uri(Dlpath + i + "/" + i + ".7z"), AppDomain.CurrentDomain.BaseDirectory + "/" + i + ".7z");
                      //  backgroundWorker1.ReportProgress(30);
                       
                      //  backgroundWorker1.ReportProgress(80);

                        i++;      
                    }
the app thow NotSupportedException and error:
WebClient does not support concurrent I/O operations.
how i fix this
tnx
12/02/2012 10:44 Kraizy​#2
[Only registered and activated users can see links. Click Here To Register...]
12/06/2012 11:13 Super Aids#3
You are doing it wrong anyways. Use the async eventhandlers to figure out when the download has finished. Your probably is most likely that.