}//TryUpdate()

        //private static bool ValidateRemoteCertificate(object sender, System.Security.Cryptography.X509Certificate certificate,
        //    System.Security.Cryptography.X509Chain chain, System.Net.ServicePointManager.SslPolicyErrors policyErrors)
        //{
        //    return true;
        //}

        /// <summary>
        /// loadConfig: This method just loads the config file so the app can check the versions manually
        /// </summary>
        private void loadConfigThread()
        {
            AutoUpdateConfig config = new AutoUpdateConfig();

            config.OnLoadConfigError += new AutoUpdateConfig.LoadConfigError(config_OnLoadConfigError);

            ////For using untrusted SSL Certificates
            //System.Net.ServicePointManager.ServerCertificateValidationCallback +=
            //    new System.Net.ServicePointManager.RemoteCertificateValidationCallback(ValidateRemoteCertificate);

            //Do the load of the config file
            if (config.LoadConfig(this.ServerPath + "UpdateVersion.xml", this.LoginUserName, this.LoginUserPass, this.ProxyURL))
            {
                this._AutoUpdateConfig = config;
                if (this.OnConfigFileDownloaded != null)
                {
                    this.OnConfigFileDownloaded(this.NewVersionAvailable);
                }
            }
            //else
            //	MessageBox.Show("Problem loading config file, from: " + this.ConfigURL);
        }
        //private static bool ValidateRemoteCertificate(object sender, System.Security.Cryptography.X509Certificate certificate,
        //    System.Security.Cryptography.X509Chain chain, System.Net.ServicePointManager.SslPolicyErrors policyErrors)
        //{
        //    return true;
        //}
        /// <summary>
        /// loadConfig: This method just loads the config file so the app can check the versions manually
        /// </summary>
        private void loadConfigThread()
        {
            AutoUpdateConfig config = new AutoUpdateConfig();
            config.OnLoadConfigError += new AutoUpdateConfig.LoadConfigError(config_OnLoadConfigError);

            ////For using untrusted SSL Certificates
            //System.Net.ServicePointManager.ServerCertificateValidationCallback +=
            //    new System.Net.ServicePointManager.RemoteCertificateValidationCallback(ValidateRemoteCertificate);

            //Do the load of the config file
            if (config.LoadConfig(this.ServerPath + "UpdateVersion.xml", this.LoginUserName, this.LoginUserPass, this.ProxyURL))
            {
                this._AutoUpdateConfig = config;
                if (this.OnConfigFileDownloaded != null)
                {
                    this.OnConfigFileDownloaded(this.NewVersionAvailable);
                }
            }
            //else
            //	MessageBox.Show("Problem loading config file, from: " + this.ConfigURL);
        }