C# ClickOnce应用程序未使用HTTPS URL安装

C# ClickOnce应用程序未使用HTTPS URL安装,c#,winforms,https,clickonce,C#,Winforms,Https,Clickonce,我使用HTTPS设置url发布我的应用程序,并将其托管到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 informa

我使用HTTPS设置url发布我的应用程序,并将其托管到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
中它不工作

我已经尝试了以下解决方案,但没有任何效果

  • 启用-在Internet选项的自定义级别启动应用程序和不安全文件
  • 取消选中-如果在Internet选项的“高级”选项卡中的“安全”和“不安全”模式之间切换,则发出警告
  • 在VS中的项目属性中对ClickOnce清单进行签名
  • 但这些都是失败的,没有任何效果

    此问题仅在HTTPS而非HTTP时发生。HTTP工作正常,但我需要使用HTTPS

    SSL证书有效


    任何人都知道这一点。

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

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

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

  • 在Internet Explorer中,转到工具/Internet选项
  • 切换到高级选项卡并向下滚动到安全部分
  • 取消选中“不要将加密页保存到磁盘”项

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

    您可以输入下载代码吗?我还没有编写下载代码。它在setup.exe下。这对我们有用,但我确实发现设置可能有点小问题。具体来说,效果在一段时间后停止工作,直到我重新启用它(点击应用),然后再次禁用它(然后再次点击应用)。