/// <summary> /// Verifica la disponibilità di nuovi aggiornamenti per l'applicazione corrente /// </summary> private ApplicationDeployUpdateInfo OnCheckUpdates(IApplicationDeployment applicationDeployment) { ApplicationDeployUpdateInfo info; try { // _log.Info("Checking for updates"); info = applicationDeployment.CheckForDetailedUpdate(); LastChecked = DateTime.Now; } catch (DeploymentDownloadException dde) { // _log.Error("The new version of the application cannot be downloaded at this time.", dde); OnError(dde); return(null); } catch (InvalidDeploymentException ide) { // _log.Error("Cannot check for a new version of the application. The ClickOnce deployment is corrupt. ", ide); OnError(ide); return(null); } catch (InvalidOperationException ioe) { //_log.Error( // "The current application is either not configured to support updates, or there is another update check operation already in progress.", // ioe); OnError(ioe); return(null); } return(info); }