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?
source share