Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?
Save up to 50% on our desktop apps during our Year End Sale!Save up to 50% on our desktop apps during our Year End Sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save up to 50% on our desktop apps during our Year End Sale!

User Image
Daz Talbot
9 discussion posts
Updating never works for me. Ever. It always throws the error in the image attached.

I usually just copy the file URL from the "More Info" box and install manually but today I had 5 minutes spare so thought I would report it.

Seems to be on the very last byte. Video here: https://app.screencast.com/GMWgoK5F6BROn
• Attachment: dferr.png [63,459 bytes]
dferr.png
dferr.png
Jun 27, 2024  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
That's really strange, haven't run into that one before!

Do you have any antivirus software that might be interfering here? I'm wondering if it's locking the file for a scan before it's finished writing to the disk.
Jun 27, 2024  • #2
User Image
Daz Talbot
9 discussion posts
Just standard Windows Defender. No third party stuff.

I tried my own code (.Net8 ) and that downloaded fine although it does say WebClient is obsolete.

Code

void Download()
        {
            // URL of the file to be downloaded
            string fileUrl = "https://www.binaryfortress.com/Data/Download/?Package=displayfusion&Beta=1&Log=301";

            // Path where the file will be saved
            string savePath = @"B:\file.zip";

            // Create a new WebClient instance
            using (WebClient client = new WebClient())
            {
                try
                {
                    // Download the file
                    client.DownloadFile(fileUrl, savePath);
                    Console.WriteLine("File downloaded successfully.");
                }
                catch (Exception ex)
                {
                    // Handle any exceptions that occur during download
                    Console.WriteLine("An error occurred: " + ex.Message);
                }
            }
        }
Jun 27, 2024 (modified Jun 27, 2024)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We're using
HttpClient.DownloadDataAsync
, could you give that a try in your code and see if you get the same error?
Jun 27, 2024  • #4
User Image
Daz Talbot
9 discussion posts
Did you mean to say Webclient? I can't see that method on the HttpClient and the error message does say WebClient.

I tried the following which works great too. It's a mystery.

void Download()
        {
            string fileUrl = "https://www.binaryfortress.com/Data/Download/?Package=displayfusion&Beta=1&Log=301";

            using (WebClient client = new WebClient())
            {
                try
                {
                    client.DownloadDataCompleted += Client_DownloadDataCompleted;
                    client.DownloadProgressChanged += Client_DownloadProgressChanged;
                    client.DownloadDataAsync(new Uri(fileUrl));
                }
                catch (Exception ex)
                {
                    Debug.WriteLine("An error occurred: " + ex.Message);
                }
            }
        }

        void Client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
        {
            Debug.WriteLine($"Progress: {e.ProgressPercentage:n2}");
        }

        void Client_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
        {
            System.IO.File.WriteAllBytes(@"B:\DF.exe", e.Result);
        }
Jun 28, 2024  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sorry yep, it's WebClient, and our dev said your code looks very similar to ours, so this is definitely a weird one! Do you get the error every time you try the DisplayFusion auto-updater?
Jun 28, 2024  • #6
User Image
Daz Talbot
9 discussion posts
Every single time and it has been happening for ages. It just never bothered me enough to report it. I only did it now because I was feeling unusually industrious. Normally I'm very lazy.

Never mind. I can live with it. It's nice that the message gives the the URL of the file to download. :-)
Jun 29, 2024  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Haha all good, we haven't had anyone else report it, but we'll keep an eye out, and if I come across anything I'll be sure to let you know :)
Jul 4, 2024  • #8
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)