title: URLDownloadToCacheFile failed with HRESULT '-2146697208'
body: <p>I am I am having a problem installing a ClickOnce vb.net windows forms application. I have tried few solutions suggested here on this site and none have helped.</p>
  
  <p>My application is built with VS2010(.NET 4.0 Framework) and is deployed to a local folder C:\inetpub\wwwroot\AppName on my dev machine but I have specified the following address as the install address <a href="https://localhost/AppName/" rel="noreferrer">https://localhost/AppName/</a></p>
  
  <p>I am getting following error when I hit "Run" button in IE.
  "Warn if changing between secure to non secure mode" is unchecked in IE.
  Any help with this will be greatly appreciated. Complete error message can be seen below.</p>
  
  <pre><code>The following properties have been set:
  Property: [AdminUser] = true {boolean}
  Property: [InstallMode] = HomeSite {string}
  Property: [ProcessorArchitecture] = AMD64 {string}
  Property: [VersionNT] = 6.1.1 {version}
  Running checks for package 'Microsoft .NET Framework 4 (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.51209'
  Setting value '4.5.51209 {string}' for property 'DotNet40Full_TargetVersion'
  The following properties have been set for package 'Microsoft .NET Framework 4 (x86 and x64)':
  Property: [DotNet40Full_TargetVersion] = 4.5.51209 {string}
  Running checks for command 'DotNetFX40\dotNetFx40_Full_x86_x64.exe'
  Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
  Result of checks for command 'DotNetFX40\dotNetFx40_Full_x86_x64.exe' is 'Bypass'
  Running checks for command 'DotNetFX40\dotNetFx40_Full_setup.exe'
  Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
  Result of running operator 'VersionGreaterThanOrEqualTo' on property 'DotNet40Full_TargetVersion' and value '4.0.30129': true
  Result of checks for command 'DotNetFX40\dotNetFx40_Full_setup.exe' is 'Bypass'
  'Microsoft .NET Framework 4 (x86 and x64)' RunCheck result: No Install Needed
  Running checks for package 'Microsoft .NET Framework 4 Client Profile (x86 and x64)', phase BuildList
  Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Client'
  Read string value '4.5.51209'
  Setting value '4.5.51209 {string}' for property 'DotNet40Client_TargetVersion'
  The following properties have been set for package 'Microsoft .NET Framework 4 Client Profile (x86 and x64)':
  Property: [DotNet40Client_TargetVersion] = 4.5.51209 {string}
  Running checks for command 'DotNetFX40Client\dotNetFx40_Client_x86_x64.exe'
  Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
  Result of checks for command 'DotNetFX40Client\dotNetFx40_Client_x86_x64.exe' is 'Bypass'
  Running checks for command 'DotNetFX40Client\dotNetFx40_Client_setup.exe'
  Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
  Result of running operator 'VersionGreaterThanOrEqualTo' on property 'DotNet40Client_TargetVersion' and value '4.0.30129': true
  Result of checks for command 'DotNetFX40Client\dotNetFx40_Client_setup.exe' is 'Bypass'
  'Microsoft .NET Framework 4 Client Profile (x86 and x64)' RunCheck result: No Install Needed
  Launching Application.
  URLDownloadToCacheFile failed with HRESULT '-2146697210'
  Error: An error occurred trying to download 'http://MachineName:90/publish.htm/AssemblyName.application'
  </code></pre>