An Error Occurred Trying To Download Clickonce
Contents |
with an error pointing to a wrong deployment URL. ★★★★★★★★★★★★★★★ Ritwik SinhaMay 14, 20142 clickonce urldownloadtocachefile failed with hresult '-2146697210' 0 0 0 ISSUE DESCRIPTION AND SYMPTOM: Installation of a
Urldownloadtocachefile Failed With Hresult 2146697208
ClickOnce application could fail with the error message referencing a URL different from the one downloading failed with hresult=-2146697208 curse from the one with which the installation was executed. Here is the error message that you could see- An error occurred trying to download ‘http://
Downloading Failed With Hresult 2146697210
publishing the application to an IIS web site hosted on a test server, and then the ClickOnce manifest was copied over to a production IIS server from test server. The manifests were copied under the IIS virtual directory without any modification. For instance, while publishing the application on test server, we specified the site URL as http://test:80/publish. Later, the files are copied to a production machine and the site URL is: http://prod:80/publish. Now when the user tries to install the ClickOnce application using the production URL, the SETUP.EXE tries to download manifests from http://test:80/publish, instead of going to http://prod:80/publish. Actually while publishing the ClickOnce manifest, the path which is specified under the ‘Publishing folder location’ in Visual Studio, gets embedded to SETUP.EXE; so when SETUP.EXE gets executed it will try to download ClickOnce manifests from the location which is embedded in it. There is a very simple way
SQL Server 2014 Express resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft an error occurred attempting to install lsb Imagine Microsoft Student Partners ISV Startups TechRewards Events Community emby urldownloadtocachefile failed with hresult Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content
System.deployment.application.deploymentdownloadexception (unknown Subtype)
Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Ask a question Quick access https://blogs.msdn.microsoft.com/vsnetsetup/2014/05/14/installation-of-a-clickonce-application-failing-with-an-error-pointing-to-a-wrong-deployment-url/ Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Simple Click Once Deployment generates "An error occurred trying to download" file. Windows Forms > ClickOnce and Setup & Deployment Projects Question 0 Sign in to vote I am using https://social.msdn.microsoft.com/Forums/en-US/e33b231e-cce2-4c4b-920c-cb4ab23905fd/simple-click-once-deployment-generates-an-error-occurred-trying-to-download-file?forum=winformssetup VSTS 2008 on Win XP Pro SP3. I generated a simple VB Windows Form Application HelloBill that has a Label "Hello, Bill." I built a Released version of it. I used the Build, Publish HelloBill menu selection to publish to http://localhost/HelloBill/. I chose the option "this application is only available online". The Build and Publish were successful. If I go to C:\Inetpub\wwwroot\HelloBill, and click on HelloBill.application, the application runs fine. If I try and run either publish.htm or setup.exe, I get: An error occurred trying to download 'http://scorpio/HelloBill/HelloBill.application'. See the setup log file located at 'C:\DOCUME~1\Don\LOCALS~1\Temp\VSD90.tmp\install.log' for more information. install.log: Launching Application.URLDownloadToCacheFile failed with HRESULT '-2146697208'Error: An error occurred trying to download 'http://scorpio/HelloBill/HelloBill.application'. IIS.log: #Software: Microsoft Internet Information Services 5.1#Version: 1.0#Date: 2008-05-13 23:02:22#Fields: date time c-ip s-computername s-ip s-port
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/20244507/download-clickonce-fails-from-setup-exe this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask http://geekswithblogs.net/PsudoKnowledgeBase/archive/2010/03/18/click-once-deployment-process-and-issue-resolution.aspx Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up failed with Download ClickOnce fails from setup.exe up vote 3 down vote favorite 1 I have a problem regarding the download of a ClickOnce application. I have succesfully deployed my ClickOnce application to an IIS server. The ClickOnce files are in path on the IIS: /MyApp/install When i from another machine navigate to the standard publish page of the ClickOnce I can either click "launch" failed with hresult or install. The difference is: - "launch" URL is to ThisIsTheApplication.application file. - install URL is to setup.exe file When I click the launch file I can succesfully install the apllication. If I use the setup.exe it fails when i try executing that file. The setup.exe basicly checks whether my prerequiteses are installed or not (only .NET 4.5 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' an