2009-11-14 166 views
4

通過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警告會中斷 它。

回答

0

嗯,使用IE安裝後,然後卸載,我可以通過Firefox再次安裝。奇。

+2

是的,「奇怪」只是總結了我用ClickOnce作爲用戶的體驗。對我來說,這只是過度複雜,不透明和脆弱。每天給我一個簡單的.EXE。 – bobince 2009-11-14 10:37:53

4

的Internet Explorer通話要麼LaunchApplicationShOpenVerbApplication從幕後dfshim.dll程序,而火狐插件(以及由Visual Studio 2008 - 2010年創建的標準引導程序,這可能也產生這種罕見的錯誤)使用不同的,過時的技術來啓動ClickOnce應用程序。 (注意,這LaunchApplication至少需要.NET框架SP 2 2)

爲了避免這樣的錯誤一個可以重定向的Internet Explorer的部署清單(。應用)和所有其他瀏覽器的自定義安裝程序( .exe)將根據需要安裝.NET Framework,然後致電ShOpenVerbApplication

0

以下爲我工作:

在當地分發包點擊在線clientCache產生一次web.config文件這就是問題所在,在這種改變Chrome和IE8如下現在運行該文件:

<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" /> 
0

我已經有了這個,它解決它是禁用防火牆。我很遺憾不知道它是什麼防火牆設置,我只是禁用了它,它運行/安裝沒有問題。

0

對這個問題耗盡防火牆選項後,我發現我的可改變的是指向應用服務器的IP地址。當我將站點部署和可執行文件更改爲服務器的FQDN而不是IP地址時,安裝程​​序首次運行。

-1

簡單的解決方案,在CMD中執行setup.exe/URL = HTTP:// <生產網址>/

輕鬆!

+0

請再次檢查您的答案,或提供其他詳細信息。按照您的'簡單'說明導致「'setup.exe'無法識別...」錯誤。 – Scooter 2018-02-11 16:08:49

相關問題