URLDownloadToCacheFile失败,出现HRESULT'-2146697208' [英] URLDownloadToCacheFile failed with HRESULT '-2146697208'

查看:468
本文介绍了URLDownloadToCacheFile失败,出现HRESULT'-2146697208'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装ClickOnce vb.net Windows窗体应用程序时遇到问题。我尝试过本网站上建议的解决方案很少,但都无济于事。 :我的开发人员机器上的:inetpub\wwwrootNameAppName,但是我指定了以下地址作为安装地址 https:// localhost / AppName /



当我在IE中点击运行按钮时,出现以下错误。
在IE中未选中在从安全模式切换到非安全模式时发出警告。
任何帮助,将不胜感激。可以在下面看到完整的错误消息。

 已设置以下属性:
属性:[AdminUser] = true {boolean}
属性:[InstallMode] = HomeSite {string}
属性:[ProcessorArchitecture] = AMD64 {string}
属性:[VersionNT] = 6.1.1 {version}
运行检查程序包'Microsoft .NET Framework 4(x86和x64)',阶段BuildList
读取注册表项'HKLM\Software\Microsoft\NET Framework Setup\NDP\的值'Version' v4\Full'
读取字符串值'4.5.51209'
属性'DotNet40Full_TargetVersion'的设置值'4.5.51209 {string}'
软件包'Microsoft'已设置以下属性.NET Framework 4(x86和x64)':
属性:[DotNet40Full_TargetVersion] = 4.5.51209 {string}
运行命令'DotNetFX40\dotNetFx40_Full_x86_x64.exe'的运行检查
运行结果属性 InstallMode和值 HomeSite上的运算符 ValueEqualTo:true
命令 DotNe的检查结果tFX40\dotNetFx40_Full_x86_x64.exe'是'Bypass'
运行命令'DotNetFX40\dotNetFx40_Full_setup.exe'
对属性'InstallMode'和值'HomeSite'运行运算符'ValueNotEqualTo'的结果:false
在属性'DotNet40Full_TargetVersion'和值'4.0.30129'上运行运算符'VersionGreaterThanOrEqualTo'的结果:true
命令'DotNetFX40\dotNetFx40_Full_setup.exe'的检查结果为'Bypass'
'Microsoft .NET Framework 4(x86和x64)'RunCheck结果:无需安装
正在运行软件包'Microsoft .NET Framework 4 Client Profile(x86和x64)',阶段BuildList
读取值'注册表项 HKLM\软件\Microsoft\NET Framework安装\NDP\v4\Client'的版本'
读取字符串值'4.5.51209'
设置值'4.5.51209属性'DotNet40Client_TargetVersion'
的{string}'已为包'Microsoft .NET Framework 4客户端配置文件(x86和x64)'设置了以下属性:
属性:[DotNet40 Client_TargetVersion] = 4.5.51209 {string}
运行命令'DotNetFX40Client\dotNetFx40_Client_x86_x64.exe'
对属性'InstallMode'和值'HomeSite'运行运算符'ValueEqualTo'的结果:true
命令'DotNetFX40Client\dotNetFx40_Client_x86_x64.exe'的检查结果为'Bypass'
运行命令'DotNetFX40Client\dotNetFx40_Client_setup.exe'的检查结果
在属性'InstallMode中运行运算符'ValueNotEqualTo'的结果'和值'HomeSite':否
在属性'DotNet40Client_TargetVersion'上运行运算符'VersionGreaterThanOrEqualTo'的结果,值'4.0.30129':true
命令'DotNetFX40Client\dotNetFx40_Client_setup.exe'的检查结果是'Bypass'
'Microsoft .NET Framework 4客户端配置文件(x86和x64)'RunCheck结果:无需安装
启动应用程序。
URLDownloadToCacheFile失败,出现HRESULT'-2146697210'
错误:尝试下载'http:// MachineName:90 / publish.htm / AssemblyName.application'时发生错误


解决方案

在我们的系统上,如果将setupProvider中的代码库URL设置为http,则在运行setup.exe时,它可以正常工作,但是https失败,出现 URLDownloadToCacheFile失败,出现HRESULT'-2146697208'。但是,将下载ourapp.application文件。



事实证明SSL缓存已禁用,以下注册表更改解决了该问题。

  Windows注册表编辑器版本5.00 

[HKEY_CURRENT_USER\软件\Microsoft\Windows\CurrentVersion\Internet设置]
DisableCachingOfSSLPages = dword:00000000


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.

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 https://localhost/AppName/

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.

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'

解决方案

On our systems, when running setup.exe, if the codebase URL in deploymentProvider was set to http, it worked, but https failed with URLDownloadToCacheFile failed with HRESULT '-2146697208'. However, the ourapp.application file would be downloaded.

It turns out that SSL caching was disabled, the following registry change fixed the issue.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"DisableCachingOfSSLPages"=dword:00000000

这篇关于URLDownloadToCacheFile失败,出现HRESULT'-2146697208'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆