"failed attempting to check for an update".

support
"failed attempting to check for an update". andyzcq  2020-07-21
 

The details about the failure are shown below.

System.Deployment.Application.DeploymentDownloadException: 下载 file:///C:/Users/zcq/Downloads/Skyline-64_20_1_0_76/Skyline.application 未成功。 ---> System.Net.WebException: 未能找到路径“C:\Users\zcq\Downloads\Skyline-64_20_1_0_76\Skyline.application”的一部分。 ---> System.Net.WebException: 未能找到路径“C:\Users\zcq\Downloads\Skyline-64_20_1_0_76\Skyline.application”的一部分。 ---> System.IO.DirectoryNotFoundException: 未能找到路径“C:\Users\zcq\Downloads\Skyline-64_20_1_0_76\Skyline.application”的一部分。
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
--- End of inner exception stack trace ---
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
at System.Net.FileWebRequest.GetResponseCallback(Object state)
--- End of inner exception stack trace ---
at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- End of inner exception stack trace ---
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.DeploymentManager.BindCore(Boolean blocking, TempFile& tempDeploy, TempDirectory& tempAppDir, FileStream& refTransaction, String& productName)
at System.Deployment.Application.DeploymentManager.Bind()
at System.Deployment.Application.ApplicationDeployment.CheckForDetailedUpdate(Boolean persistUpdateCheckResult)
at pwiz.Skyline.UpgradeManager.AppDeploymentWrapper.CheckForDetailedUpdate() in C:\proj\skyline_20_1_x64\pwiz_tools\Skyline\UpgradeManager.cs:line 339
at pwiz.Skyline.UpgradeManager.updateCheck_DoWork(Object sender, DoWorkEventArgs e) in C:\proj\skyline_20_1_x64\pwiz_tools\Skyline\UpgradeManager.cs:line 103

 
 
Nick Shulman responded:  2020-07-22
Title: failed attempting to check for an update
Thank you for reporting this error.

It looks like this happens if you download, unzip, and install the "unplugged" version of Skyline, and then you remove the folder that you installed Skyline from.
Then, if you start up Skyline, you will get this error.
We should fix this error, but you can safely ignore it and continue to use Skyline.
If you would like this error to stop happening, you can download the 64_20_1_0_76 unplugged installer from:
https://skyline.ms/labkey/_webdav/home/software/Skyline/%40files/installers/Skyline-64_20_1_0_76.zip
and then unzip it into your folder:
C:\Users\zcq\Downloads\Skyline-64_20_1_0_76

A different thing that you can do is go into:
Control Panel > Program and Features
and uninstall Skyline.

After uninstalling Skyline, you can then install the latest version of Skyline 20.1.0.155 from the Skyline website.

My understanding is that the unplugged version of Skyline is should not bother checking for a new version of itself, since a new version will never appear in the folder that it was installed from. I will ask around and see if we can get this fixed.

Let us know if this error is preventing you from doing something you need to do, and we can figure out a workaround.
-- Nick
 
andyzcq responded:  2020-07-22
Nick, thanks for your reply.

So what can I do to let Skyline update automatically?

I do not want to uninstall the old Skyline and reinstall the newer Skyline every time when the new Skyline is released.
 
Nick Shulman responded:  2020-07-22
How did you install Skyline on this computer?
The error message that you are getting makes me think that you installed the "unplugged" version by downloading a zip file, unzipping it, and running the setup.exe that was in the unzipped folder.

The usual way to install Skyline is to go to:
https://skyline.ms/wiki/home/software/Skyline/page.view?name=SkylineInstall_64_20-1&submit=false
and then click the "I Agree (64 bit)" button and then the big blue "Install Skyline" button.

If you install Skyline in that way, I believe that Skyline will automatically check for new versions.

I think what you did instead was click the "install 64-bit Skyline unplugged" link. That installs a Skyline which does not know how to upgrade itself.

I believe if you uninstall the Skyline that you have, and then install a Skyline in the usual way, everything will work for you in terms of upgrading in the future.

Let us know if that does not work.
-- Nick
 
andyzcq responded:  2020-07-22
Indeed I downloaded the unplugged installation file.

OK. I get it.

Next time, I will install Skyline in the usual way.

Thanks.