Error code 530

I'm trying to use the Automatic Updater Control and it doesn't work so I tried from a command line to start the WyUpdate.exe and I get Error code 530 : "Error trying to save file: Error downloading "**My FTP site**/wyserver.wys": Le serveur distant a retournune erreur: (530) Non connect French translation "The Distant Server returned an error 530 not connected.". I was able to build from WyBuild and upload to my FTP server properly, I copied the WyUpdate.exe and the Client.wyc file to my application directory. What am I doing wrong? 😢

Hi Franis,

If you're downloading from an FTP site you'll need to specify both the username and password. For example:

ftp://username:password@yourftp.com/%file%

You even need to type the username & password even if you're downloading from an anonymous ftp server.

Rebuild your updates & wyUpdate (to generate a new "client.wyc" file that references the fixed site).

Hi Wyatt,

Thanks for the quick response, now the command line works fine but I still can't get the Automatic updater to work I get this message "wyUpdate ended before the current update step could be completed.". The rebuilted WyUpdate.exe and Client.wyc are in my application directory. My Application is an Excel 2007 document built with Visual Studio 2008 (VSTO), I tried putting the WyUpdate.exe and Client.wyc files in the Excel directory and get the same message. What am I doing wrong again?.

Best regards. 😐

You're not doing anything wrong. Unfortunately the AutomaticUpdater control only supports working on Windows Forms applications. That is, the control has to be on the main form of your App (which in your case can never happen since you're hosted in the Excel process) and it has to be a Windows Forms app.

This initially seemed like a good design decision, but we're quickly realizing that this only works for about 80% of our customers. The other 20%, like you and quite a few other customers, can't use the AutomaticUpdater.

So, here's how we're addressing this:

  • In wyBuild 2.6 we're adding support for WPF apps and apps written for .NET 4.0. (This doesn't affect you).
  • In wyBuild 2.7/2.8 we're decoupling the AutomaticUpdater design to allow automatic updating for apps where you're not using a "main form" so to speak.

For now, however, you can use the silent update checking wyUpdate functionality. It isn't as nice as the AutomaticUpdater, but it's a good stopover until we release wyBuild 2.7 or 2.8.

Thanks for the quick reply Wyatt,

Since I can't use the automatic updater, I decided to use the WyUpdate.exe (not silent). I was able to get it to update but not to stop current application (Excel 2007) and reload the proper version. I'm trying to find a way to catch a return code (updated, Cancelled or Failed) from WyUpdate (I believe you return a 0 if successfull) and, if successfull, I'd like to get my application to shut down and restart. Not to sure if I can do this in c# would you have any idea how I can acheive this? 🤔

Thanks for the quick reply Wyatt,

Since I can't use the automatic updater, I decided to use the WyUpdate.exe (not silent). I was able to get it to update but not to stop current application (Excel 2007) and reload the proper version. I'm trying to find a way to catch a return code (updated, Cancelled or Failed) from WyUpdate (I believe you return a 0 if successfull) and, if successfull, I'd like to get my application to shut down and restart. Not to sure if I can do this in c# would you have any idea how I can acheive this? 🤔

This should work for you:

        void SilentlyCheck()        {            Process wuProc = new Process                                 {                                     StartInfo =                                         {                                             FileName = @"C:\Location\to\wyUpdate.exe",                                             Arguments = "-quickcheck -justcheck -noerr"                                         },                                     EnableRaisingEvents = true                                 };


            wuProc.Exited += wuProc_Exited;


            wuProc.Start();        }


        void wuProc_Exited(object sender, EventArgs e)        {            Process wuProc = (Process)sender;            wuProc.Exited -= wuProc_Exited;


            switch (wuProc.ExitCode)            {                case 0: // no updates are found                    break;                case 1: // an error occurred


                    //TODO: log the error, or show a message box for debugging


                    break;                case 2: // there are updates available.


                    DialogResult dr = MessageBox.Show(                        "A new version of YOUR COMPOENET PRO is out. Would you like to close Excel and install the update?",                        "New YOUR APP PRO", MessageBoxButtons.YesNo, MessageBoxIcon.Question);


                    if (dr == DialogResult.Yes)                    {                        // start wyUpdate in non-silent mode                        Process.Start(@"C:\Location\to\wyUpdate.exe");


                        // I'm assuming this will close Excel (needs to be tested)                        Application.Exit();                    }


                    break;            }        }

Wow this is working great. Thanks 😀