.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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chinmay PatelChief Technology NinjaCommented:
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.

CipherISAuthor Commented:
I am remoted into the computer that I'm having problems with.
Chinmay PatelChief Technology NinjaCommented:
Is it possible that there are intermittent connection issues? what happens when you try to run the installation again?
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

CipherISAuthor Commented:
      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)

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

      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.

      No transaction error was detected.

      There were no warnings during this operation.

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

      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 ---
            - 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)

      No transaction information is available.
CipherISAuthor Commented:
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 PatelChief Technology NinjaCommented:
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.
CipherISAuthor Commented:
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 PatelChief Technology NinjaCommented:
Great. Finally some progress.
CipherISAuthor Commented:

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


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


How can I get prerequisite to download from correct location?
Chinmay PatelChief Technology NinjaCommented:
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?
CipherISAuthor Commented:
The first issue is that the prerequisite is using


when it should be using


the xxxxx.com is correct

The next issue is after xxxx.com it points to


when it should point to


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 PatelChief Technology NinjaCommented:
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?

And this URL, is of your internal server?

Or both these URLs are your internal URLs?

CipherISAuthor Commented:
It is not the Crystal Reports Server.  It is the server where I am pushing the application to.

As an example:


instead of


The setup.exe is located at


If I go to


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?
Chinmay PatelChief Technology NinjaCommented:
Thanks for clearing that up. I was suspecting it is falling back to some official URL.

Now, that is out of the way, have you tried this fix : https://blogs.msdn.microsoft.com/vsnetsetup/2014/05/14/installation-of-a-clickonce-application-failing-with-an-error-pointing-to-a-wrong-deployment-url/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CipherISAuthor Commented:

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 PatelChief Technology NinjaCommented:
I think it is how you should run the setup.
CipherISAuthor Commented:
But how do I do that?  I try adding it to build events but get errors.  I am searching on how to do that.

Chinmay PatelChief Technology NinjaCommented:
Try to run the setup via a command line providing the full path as well as the URL parameter.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.