Avatar of CipherIS
CipherIS
Flag for United States of America asked on

.NET WInforms ClickOnce - Error during install.

I have a winforms application that is utilizing click once to create the install which is pushed to a server.  When clicking on the launch the xxxxx.application downloads.  When running xxxxxx.application I get the following error:

System.Deployment.Application.DeploymentDownloadException (Unknown subtype)

It only occurs on 1 of the 3 computers I tested the install.

Any idea what is causing this?
.NET ProgrammingInstallation

Avatar of undefined
Last Comment
Chinmay Patel

8/22/2022 - Mon
Chinmay Patel

Hi Cipher,

This can happen due to one of the three reasons.

1. The client's computer's network connection is down.

2. The Web server, FTP server, or file share hosting the update is unavailable.

3. One or more of the files in the ClickOnce deployment was not found.

Regards,
Chinmay.
CipherIS

ASKER
I am remoted into the computer that I'm having problems with.
Chinmay Patel

Is it possible that there are intermittent connection issues? what happens when you try to run the installation again?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
CipherIS

ASKER
PLATFORM VERSION INFO
      Windows                   : 6.1.7601.65536 (Win32NT)
      Common Language Runtime       : 4.0.30319.18063
      System.Deployment.dll             : 4.0.30319.34280 built by: FX452RTMGDR
      clr.dll                   : 4.0.30319.18063 built by: FX45RTMGDR
      dfdll.dll                   : 4.0.30319.34280 built by: FX452RTMGDR
      dfshim.dll                   : 4.0.41209.0 (Main.041209-0000)

SOURCES
      Deployment url                  : file:///C:/Users/xxxxxxxx/Downloads/xxxxxxxx-xxxxxxxx(1).application
      Deployment Provider url            : https://xxxxxxxx.com/xxxxxxxx/xxxxxxxx-xxxxxxxx.application

ERROR SUMMARY
      Below is a summary of the errors, details of these errors are listed later in the log.
      * Activation of C:\Users\xxxxxxxx\Downloads\xxxxxxxx-xxxxxxxx(1).application resulted in exception. Following failure messages were detected:
            + Downloading https://xxxxxxxx.com/xxxxxxxx/xxxxxxxx-xxxxxxxx.application did not succeed.
            + The request was aborted: Could not create SSL/TLS secure channel.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
      No transaction error was detected.

WARNINGS
      There were no warnings during this operation.

OPERATION PROGRESS STATUS
      * [12/5/2018 9:03:13 PM] : Activation of C:\Users\xxxxxxxx\Downloads\xxxxxxxx-xxxxxxxx(1).application has started.

ERROR DETAILS
      Following errors were detected during this operation.
      * [12/5/2018 9:03:15 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
            - Downloading https://xxxxxxxx.com/xxxxxxxx/xxxxxxxx-xxxxxxxx.application did not succeed.
            - Source: System.Deployment
            - Stack trace:
                  at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
                  at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
                  at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
                  at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
                  at System.Deployment.Application.DownloadManager.DownloadManifest(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ManifestType manifestType, 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.FollowDeploymentProviderUri(SubscriptionStore subStore, AssemblyManifest& deployment, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
                  at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
                  at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
                  at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
            --- Inner Exception ---
            System.Net.WebException
            - The request was aborted: Could not create SSL/TLS secure channel.
            - Source: System
            - Stack trace:
                  at System.Net.HttpWebRequest.GetResponse()
                  at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

COMPONENT STORE TRANSACTION DETAILS
      No transaction information is available.
CipherIS

ASKER
Looks like this is the issue.

            + Downloading https://xxxx.com/xxxxx/xxxxxxx?.application did not succeed.
            + The request was aborted: Could not create SSL/TLS secure channel.
Chinmay Patel

In the similar question, earlier I raised this : What is this URL? Is it internal? Is it external? There are other things at play here - maybe a load balanced cluster is misbehaving? This does not really look like a deployment/ClickOnce issue to me. It could be very well Network/Infrastructure issue.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
CipherIS

ASKER
I think it is network.  The URL is external.  https://www.xxxxx.com/xxxxx/publish.htm.

I can access it externally.  

I downloaded and ran the exe two computers in the network and once computer outside of the network.  

It worked on the computer outside of the network and one computer in the network.

I submitted a ticket to IT to see what they say.
Chinmay Patel

Great. Finally some progress.
CipherIS

ASKER
Chinmay,

Have a question.  So, I recreated the install.  The setup.exe downloads.  I run it.  I get to the crystal reports and I get the error there.  This is what I noticed.  Says it can't download from

http://xxxxxx.com/downloads/CrystalReports_105\CRRedist2008_x64.msi

BUT the problem is that it is downloading from (and I set the prerequisites to this path also)

https://xxxxx.com/prodname/CrystalReports_105\CRRedist2008_x64.msi

How can I get prerequisite to download from correct location?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Chinmay Patel

This xxx part... are they two different URLs? or the same? This MSIs, can download stuff on demand as well. Could you please confirm that it is not trying to download from some other component i.e. some other dependency is triggering this download?
CipherIS

ASKER
The first issue is that the prerequisite is using

http

when it should be using

https

the xxxxx.com is correct

The next issue is after xxxx.com it points to

download

when it should point to

prodname

In the prerequisite i selected "download from specific location" and typed it in as when i selected "download from same location as my application" it was not pointing there.

Can't figure out where it is getting that path from
Chinmay Patel

Cipher... I am asking this question from the very beginning, please answer this correctly, this will help us get closer to the solution.

This URL... is of Crystal Report Server? or some other server?
http://xxxxxx.com/downloads/CrystalReports_105\CRRedist2008_x64.msi

And this URL, is of your internal server?
https://xxxxx.com/prodname/CrystalReports_105\CRRedist2008_x64.msi

Or both these URLs are your internal URLs?

Regards,
Chinmay.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
CipherIS

ASKER
It is not the Crystal Reports Server.  It is the server where I am pushing the application to.

As an example:

http://myserver/downloads/CrystalReports_105/CRRedist2008_x54.msi

instead of

https://myserver/prodname/CrystalReports_105/CRRedist2008_x54.msi

The setup.exe is located at

https://mserver/prodname/setup.exe

If I go to

https://myserver/prodname/CrystalReports_105/CRRedist2008_x54.msi

The msi file will download.

I just don't know why it is NOT pointing to that location to download and it is choosing another

They are pointing to the same internal URL.  The download directory does not exist.  The prodname directory does.

Why is it pointing to http and not https?
ASKER CERTIFIED SOLUTION
Chinmay Patel

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
CipherIS

ASKER
Ugh.

setup.exe /URL=http://< Production  URL>/

How do I do this?

I went to build events and put it there but it fails during build.
Chinmay Patel

I think it is how you should run the setup.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
CipherIS

ASKER
But how do I do that?  I try adding it to build events but get errors.  I am searching on how to do that.

Thanks
SOLUTION
Chinmay Patel

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.