Visual Studio先决条件下载失败,HRESULT = -2146697208

时间:2017-05-17 04:02:49

标签: c# visual-studio installation clickonce

我们有一次点击安装程序,我们已经添加了.NET框架和SQL localDB 2014作为先决条件。我们已选择"从以下情况中下载先决条件"如下图所示。

enter image description here

除了Windows 2012之外,所有操作系统都可以正常工作。当我们尝试在2012年安装时,它会得到"下载失败,HRESULT = -2146697208"错误。以下是install.log

的完整日志
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = SpecificSite {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.50709'
Setting value '4.5.50709 {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.50709 {string}
Running checks for command 'DotNetFX45\dotNetFx45_Full_x86_x64.exe'
Result of running operator 'ValueEqualTo' 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_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': 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
Running checks for package 'SQL Server 2014 SP1 Express LocalDB', phase BuildList
Looking up path for special folder 'ProgramFilesFolder'
Running check with folder 'C:\Program Files (x86)\Microsoft SQL Server\120\LocalDB\Binn' and file 'sqlservr.exe'
Unable to find directory 'C:\Program Files (x86)\Microsoft SQL Server\120\LocalDB\Binn'
Not setting value for property 'sqllocaldbVersion'
Looking up path for special folder 'WindowsVolume'
Running check with folder 'C:\Program Files\Microsoft SQL Server\120\LocalDB\Binn' and file 'sqlservr.exe'
Unable to find directory 'C:\Program Files\Microsoft SQL Server\120\LocalDB\Binn'
Not setting value for property 'sqllocaldbVersion_x64'
The following properties have been set for package 'SQL Server 2014 SP1 Express LocalDB':
Running checks for command 'SqlLocalDB2014SP1\sqllocaldb_x86.msi'
Result of running operator 'ValueNotExists' on property 'VersionNT': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '6.0.1': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'Intel': true
Result of checks for command 'SqlLocalDB2014SP1\sqllocaldb_x86.msi' is 'Bypass'
Running checks for command 'SqlLocalDB2014SP1\sqllocaldb_x64.msi'
Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'amd64': false
Skipping ByPassIf because Property 'sqllocaldbVersion' was not defined
Skipping ByPassIf because Property 'sqllocaldbVersion_x64' was not defined
Result of checks for command 'SqlLocalDB2014SP1\sqllocaldb_x64.msi' is 'Install'
'SQL Server 2014 SP1 Express LocalDB' RunCheck result: Install Needed
EULA for components 'SQL Server 2014 SP1 Express LocalDB' was accepted.
Copying files to temporary directory "C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD8390.tmp\"
Downloading files to "C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD8390.tmp\"
(5/17/2017 8:47:57 AM) Downloading 'SqlLocalDB2014SP1\sqllocaldb_x64.msi' from 'https://*********/printconnector/prerequisites/SqlLocalDB2014SP1/sqllocaldb_x64.msi' to 'C:\Users\ADMINI~1\AppData\Local\Temp\2\VSD8390.tmp\'
Download completed at 5/17/2017 8:48:04 AM
Downloading failed with HRESULT=-2146697208

这只会在Windows 2012服务器上失败的原因是什么,无论如何都要解决这个问题? (不提供从组件供应商的网站下载先决条件的选项)

1 个答案:

答案 0 :(得分:0)

问题似乎与2012年的ssl有关,因为使用http而不是https时下载成功。