ClickOnce下载失败

时间:2015-05-04 23:56:34

标签: visual-studio-2012 clickonce

好的,我遇到了与Download ClickOnce fails from setup.exeDownload ClickOnce fails from setup.exe类似的问题,我为我销售的桌面应用部署了一个ClickOnce安装程序。

与这些示例不同,我使用的是Visual Studio 2012(专业版)。使用.Net 3.5。我正在部署在托管的LINUX机器上。它适用于我和其他运行Windows 7和Windows 7的用户。 8,可能是Widnows的早期版本。然后在调试模式下运行几个测试后,我在发布模式下构建和部署。现在,自动安装程序在到达要下载.application文件的位置时会中断。这是日志文件。

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.2.0 {version}
Running checks for package 'Microsoft Visual Basic PowerPacks 10.0', phase BuildList
Attempting to find 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=YADDAYADDA' in the Global Assembly Cache
AssemblyCheck: Error querying assembly info: -2147024894
Attempting to find 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=YADDAYADDA, processorArchitecture=msil' in the Global Assembly Cache
Assembly found at 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualBasic.PowerPacks.Vs\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.PowerPacks.Vs.dll'
Setting value '11.0.50727.1 {version}' for property 'VBPowerPacksInstalled'
The following properties have been set for package 'Microsoft Visual Basic PowerPacks 10.0':
Property: [VBPowerPacksInstalled] = 11.0.50727.1 {version}
Running checks for command 'VBPowerPacks\VisualBasicPowerPacksSetup.exe'
Result of running operator 'ValueExists' on property 'VBPowerPacksInstalled': true
Result of checks for command 'VBPowerPacks\VisualBasicPowerPacksSetup.exe' is 'Bypass'
'Microsoft Visual Basic PowerPacks 10.0' RunCheck result: No Install Needed
Running checks for package '.NET Framework 3.5 SP1', phase BuildList
Reading value 'SP' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5'
Read integer value 1
Setting value '1 {int}' for property 'DotNet35SP'
The following properties have been set for package '.NET Framework 3.5 SP1': Property: [DotNet35SP] = 1 {int}
Running checks for command 'DotNetFX35SP1\dotNetFx35setup.exe'
Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet35SP' and value '1': true
Result of checks for command 'DotNetFX35SP1\dotNetFx35setup.exe' is 'Bypass'
'.NET Framework 3.5 SP1' RunCheck result: No Install Needed
Launching Application.
URLDownloadToCacheFile failed with HRESULT '-2146697205'
Error: An error occurred trying to download 'http://www.mywebsite.com/ProductName/Downloads/oneclick/ProductName.application'.

我查看了https://msdn.microsoft.com/en-us/library/ms229001.aspx,之后我将.application的MIME类型设置为x-ms-application。没有区别。

当我将网址http://www.mywebsite.com/ProductName/Downloads/oneclick/ProductName.application放入浏览器时,我会收到文件的文本,而不是下载。

有什么想法???谢谢!

2 个答案:

答案 0 :(得分:0)

好的,让我更接近解决方案的第一件事就是重新启动我正在卸载的PC。这让我进一步进入安装,但后来遇到了另一个问题,我在ClickOnce application replace current installed fliles找到的解决方案。清除文件夹C:\Users\Charles\AppData\Local\Apps\2.0让我到了可以安装的位置并完全运行应用程序。

答案 1 :(得分:0)

C#中的窗口应用程序。我的解决方案,希望它能为某人服务。域服务器已损坏,我刚刚更改了新DNS服务器的IP。不必加入该新的域服务器IP。

Image solution