2015-11-20 95 views
0

嘗試安裝以clickonce方式分發的應用程序時出現奇怪的錯誤。ClickOnce發佈:安裝按鈕失敗,但啓動鏈接工作

你可以在這裏重現行爲:

https://bank.dev.ivnosys.net/backofficeSSL/

如果 「啓動」 鏈接的用戶點擊。安裝程序完美工作。 但是,如果用戶點擊「安裝」按鈕,我得到以下錯誤: Error window

安裝日誌,沒有幫助。這是它的內容:

The following properties have been set: 
Property: [AdminUser] = true {boolean} 
Property: [InstallMode] = HomeSite {string} 
Property: [NTProductType] = 1 {int} 
Property: [ProcessorArchitecture] = AMD64 {string} 
Property: [VersionNT] = 6.3.0 {version} 
Running checks for package 'Windows Installer 4.5', phase BuildList 
Looking up path for special folder 'WindowsFolder' 
Running check with folder 'C:\Windows\System32' and file 'msi.dll' 
Attempting to find file 'C:\Windows\System32\msi.dll' 
File version is '5.0.9600.17905' 
Setting value '5.0.9600.17905 {version}' for property 'VersionMsiDll' 
The following properties have been set for package 'Windows Installer 4.5': 
Property: [VersionMsiDll] = 5.0.9600.17905 {version} 
Running checks for command 'WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe' 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true 
Result of checks for command 'WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe' is 'Bypass' 
Running checks for command 'WindowsInstaller4_5\WindowsXP-KB958655-v2-x86-ENU.exe' 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true 
Result of checks for command 'WindowsInstaller4_5\WindowsXP-KB958655-v2-x86-ENU.exe' is 'Bypass' 
Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x86.exe' 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true 
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x86.exe' is 'Bypass' 
Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB958655-v2-x86-ENU.exe' 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true 
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB958655-v2-x86-ENU.exe' is 'Bypass' 
Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x64.exe' 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true 
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x64.exe' is 'Bypass' 
Running checks for command 'WindowsInstaller4_5\WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe' 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true 
Result of checks for command 'WindowsInstaller4_5\WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe' is 'Bypass' 
Running checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x86.MSU' 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22308': true 
Result of checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x86.MSU' is 'Bypass' 
Running checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x64.MSU' 
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22308': true 
Result of checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x64.MSU' is 'Bypass' 
'Windows Installer 4.5' RunCheck result: No Install Needed 
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.51650' 
Setting value '4.5.51650 {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.51650 {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 
Launching Application. 
URLDownloadToCacheFile failed with HRESULT '-2146697191' 
Error: An error occurred trying to download 'https://bank.dev.ivnosys.net/backofficeSSL/IBANify.application'. 

我100%確定最終用戶會嘗試點擊安裝。對我而言,這是一個很大的可用性問題。

+0

可能會出現愚蠢的問題 - 但確實存在「https:// bank.dev.ivnosys.net/backofficeSSL/IBANify.application」嗎? – ChrisF

+0

@ChrisF是的。你可以嘗試直接從IE打開它。你會看到安裝程序運行沒有問題。此URL也是當您點擊「啓動」時打開的網址。 – Rumpelstinsk

回答

1

錯誤-2146697191轉換爲0x800C0019是:

INET_E_INVALID_CERTIFICATE - The SSL certificate is invalid.

Source

所以它看起來像你的SSL證書不正確設置爲您要訪問的URL。

如果您嘗試鏈接爲普通http它應該工作。

但要正確解決它,您需要清理證書。

+0

我認爲你是對的,因爲它是我們用於測試的服務器。在此服務器中,IIS上使用的證書是自定義證書。不過,我在我的機器上安裝了de Custom CA作爲受信任的CA.我認爲這應該夠了。儘管如此,我仍會嘗試直接測試生產。也許這個問題不會被複制。 – Rumpelstinsk