2009-11-14 859 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

相关问题