ClickOnce download fails from setup.exe

I am having trouble downloading the ClickOnce application. I have successfully deployed the ClickOnce application on the IIS server. ClickOnce files are in the path in IIS: / MyApp / install

When I go to the standard ClickOnce publishing page from another machine, I can either click "run" or install. The difference is as follows: - The β€œlaunch” URL is the file ThisIsTheApplication.application. - set the url to the setup.exe file

When I click on the startup file, I can successfully complete the apllication installation. If I use setup.exe, it fails when I try to execute this file.

The setup.exe file checks to see if my preliminary requests are installed or not (only .NET 4.5 is used for this). The log file says:

The following properties have been set: Property: [AdminUser] = true {boolean} Property: [InstallMode] = HomeSite {string} Property: [NTProductType] = 3 {int} Property: [ProcessorArchitecture] = AMD64 {string} Property: [VersionNT] = 6.2.0 {version} Running checks for package 'Microsoft .NET Framework 4.5 (x86 and x64)', phase BuildList Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full' Read string value '4.5.51641' Setting value '4.5.51641 {string}' for property 'DotNet45Full_TargetVersion' The following properties have been set for package 'Microsoft .NET Framework 4.5 (x86 and x64)': Property: [DotNet45Full_TargetVersion] = 4.5.51641 {string} Running checks for command 'DotNetFX45\dotNetFx45_Full_x86_x64.exe' Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true Result of checks for command 'DotNetFX45\dotNetFx45_Full_x86_x64.exe' is 'Bypass' Running checks for command 'DotNetFX45\dotNetFx45_Full_setup.exe' Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false Result of running operator 'VersionGreaterThanOrEqualTo' on property 'DotNet45Full_TargetVersion' and value '4.5.50709': true Result of checks for command 'DotNetFX45\dotNetFx45_Full_setup.exe' is 'Bypass' 'Microsoft .NET Framework 4.5 (x86 and x64)' RunCheck result: No Install Needed Launching Application. URLDownloadToCacheFile failed with HRESULT '-2146697208' Error: An error occurred trying to download 'https://myurl.com/MyAppFolder/install/ThisIsTheApplication.application'. 

Why does the "launch" work, and not the setup.exe file?

+6
source share
2 answers

I had the same problem. My log file looked very similar (there were no stack traces or anything else), and the last two lines were similar. Setup.exe error, but the url .... application worked fine. I am on a corporate network / domain, and our system administrators have created many group policies that override the default security zone settings. The problem was resolved by deleting the policies and then clicking the buttons:
"IE β†’ Tools β†’ Internet Settings β†’ Security β†’ Reset all zones to the default level"
and "Advanced β†’ Restore advanced settings."

+3
source

I found the following guide here:

http://feedback.veodin.com/knowledgebase/articles/52576-installation-fails-with-error-message-urldownload

  • Launch Microsoft Internet Explorer by pressing Win + R, type 'iexplore and finally press enter

  • Go to the Tools menu

  • Be sure to uncheck the box in "Work offline

  • Run KeyRocket_Setup.exe again

With that said, I find it easier to create your own custom β€œclicks” to avoid any interference with Internet Explorer at all.

0
source

Source: https://habr.com/ru/post/958927/


All Articles