通過Firefox安裝我的ClickOnce應用程序時,出現以下錯誤。 IE在同一臺計算機上不會發生這種情況。我發誓我已經通過Firefox安裝它。這是一臺Windows 7機器。安裝過程中導致ClickOnce URLDownloadToCacheFile失敗的原因是什麼?
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 6.1.0 {version}
Running checks for package '.NET Framework 2.0 (x86)', phase BuildList
Running external check with command 'C:\Users\luke\AppData\Local\Temp\VSDEF1A.tmp\DotNetFX\dotnetchk.exe' and parameters ''
Process exited with code 1
Setting value '1 {int}' for property 'DotNetInstalled'
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\Internet Explorer'
Read string value '8.0.7600.16385'
Setting value '8.0.7600.16385 {string}' for property 'IEVersion'
The following properties have been set for package '.NET Framework 2.0 (x86)':
Property: [DotNetInstalled] = 1 {int}
Property: [IEVersion] = 8.0.7600.16385 {string}
Running checks for command 'DotNetFX\instmsia.exe'
Result of running operator 'ValueExists' on property 'VersionNT': true
Result of checks for command 'DotNetFX\instmsia.exe' is 'Bypass'
Running checks for command 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'ValueExists' on property 'Version9x': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '5.0.3': false
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.0': true
Result of checks for command 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
Running checks for command 'DotNetFX\dotnetfx.exe'
Result of running operator 'ValueNotEqualTo' on property 'DotNetInstalled' and value '0': true
Result of checks for command 'DotNetFX\dotnetfx.exe' is 'Bypass'
'.NET Framework 2.0 (x86)' RunCheck result: No Install Needed
Launching Application.
URLDownloadToCacheFile failed with HRESULT '-2146697211'
Error: An error occurred trying to download 'http://croppy.lukehunter.net/download/croppy.application'.
以下是微軟的howto,但這並不適用於firefox。沒有重定向發生。
如果用戶將Internet Explorer設置 高級安全選項「警告,如果安全之間改變 和不安全 模式」的部署目標 電腦,如果 ClickOnce應用程序的安裝程序URL安裝 從非安全網址重定向到 安全網站(反之亦然),則 安裝將失敗,因爲 Internet Explorer警告會中斷 它。
是的,「奇怪」只是總結了我用ClickOnce作爲用戶的體驗。對我來說,這只是過度複雜,不透明和脆弱。每天給我一個簡單的.EXE。 – bobince 2009-11-14 10:37:53