Error occurred during download

Jan 25, 2014 at 7:59 AM
Hello,

There are some videos that I can't download. I get an error saying "Error occurred during download". Can this be fixed? Thank you.
This is one example. http://www.youtube.com/watch?v=q5qXTif2XE8
Aug 10, 2014 at 8:46 AM
I get this error as well on certain videos (e.g. https://www.youtube.com/watch?v=UqXVgAmqBOs)

I am not sure what the reason is. I know that it it has something to do with the FileInfo in the wc_DownloadFileCompleted() method.

Any ideas?
void wc_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
    {
        lnkCancel.Enabled = false;

        if (e.Cancelled)
        {
            MessageBox.Show("Download canceled.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
            try
            {
                File.Delete(dwnFile);
                if (_audio) File.Delete(filePath);
            }
            catch (Exception) { }
            unlockGui();
            return;
        }
        wc = null;
        try
        {
            FileInfo f = new FileInfo(dwnFile);
            if (f.Length < 4)
            {
                MessageBox.Show("  Error occured during download.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
                f = null;
                try
                {
                    if (_audio) File.Delete(filePath); File.Delete(dwnFile);
                }
                catch (Exception) { }
            }
            else
            {
                f = null;
                progressBar1.Value = 0;
                if (_audio)
                {
                    toMp3(dwnFile);
                    try { File.Delete(dwnFile); }
                    catch (Exception) { }
                }
                this.Activate();
            }
        }
        catch (Exception ex)
        {
            this.Activate();
            MessageBox.Show("Error: " + ex.Message, Application.ProductName);
        }
        unlockGui();
        lblResult.Text = "Done ";
    }