ClickOnce应用程序未使用HTTPS URL进行安装 [英] ClickOnce application is not installing with HTTPS URL

查看:1269
本文介绍了ClickOnce应用程序未使用HTTPS URL进行安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HTTPS设置网址发布我的应用程序并将其托管到HTTPS网址。

I am publishing my application with HTTPS setup url and host it to HTTPS url.

当我运行 setup.exe 发生错误。

An error occurred trying to download 'https://***.tjc.tv/WMSClient.application'.

See the setup log file located at 'C:\Users\mkumawat\AppData\Local\Temp\VSD3796.tmp\install.log' for more information.

日志文件

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.2.0 {version}
Running checks for package 'Windows Installer 3.1', phase BuildList
The following properties have been set for package 'Windows Installer 3.1':
Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
'Windows Installer 3.1' RunCheck result: No Install Needed
Launching Application.
URLDownloadToCacheFile failed with HRESULT '-2146697202'
Error: An error occurred trying to download 'https://***.tjc.tv/WMSClient.application'.

当我手动下载此 https://***.tjc时。浏览器中的tv / WMSClient.application 然后它正在下载并且工作正常,但在 setup.exe 它无效。

When I manually download this https://***.tjc.tv/WMSClient.application in browser then it's downloading and works fine but in setup.exe it's not working.

我已经尝试过以下解决方案,但没有任何作用。

I have already tried following solutions but nothing works.


  1. 启用 - 在自定义级别中启动应用程序和不安全文件Internet选项。

  2. 取消选中 - 如果在Internet选项的高级选项卡中在安全模式和非安全模式之间切换,则发出警告。

  3. 在项目属性中签署ClickOnce清单在VS

但是这些都失败了。

只有HTTPS而不是HTTP才会出现此问题。 HTTP工作正常,但我需要使用HTTPS。

This issue occurs with only HTTPS not HTTP. HTTP is working fine but I need to use HTTPS.

SSL证书有效。

任何人都知道这一点。

推荐答案

在我们的系统上,setup.exe失败了好吧,错误 URLDownloadToCacheFile失败了HRESULT'-2146697208',而当点击ourapp.application链接或启动下载的文件时,安装的应用程序没有任何问题。

On our systems setup.exe failed as well, with the error URLDownloadToCacheFile failed with HRESULT '-2146697208', while, when clicking on the ourapp.application link or launching the downloaded file, the applicaction installed with no issue.

如果我们将安装源从HTTPS更改为HTTP,我们就可以使用setup.exe进行安装。

If we changed the install source from HTTPS to HTTP, we would then be able to install using setup.exe.

我们的解决方案是重新启用HTTPS页面的缓存。由于setup.exe正在使用WinInet,这是一个可以通过IE进行的Internet设置更改。

Our resolution was to re-enable the caching of HTTPS pages. Since setup.exe is using WinInet, this is an Internet Settings change that can be made thru IE.


  1. 在Internet Explorer中,转到工具/ Internet选项

  2. 切换到高级选项卡并向下滚动到安全部分。

  3. 取消选中不保存加密的页面项磁盘。

由于大多数流量都转移到HTTPS,因此此安全功能对我来说不再有意义了

Since most traffic is moving to HTTPS, this security feature doesn't make much sense to me anymore

这篇关于ClickOnce应用程序未使用HTTPS URL进行安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆