在C#中进行Clickonce部署 [英] Clickonce deploy in C#

查看:159
本文介绍了在C#中进行Clickonce部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在本地计算机上部署一次单击应用程序。我尝试使用IIS服务器发布虚拟机。我遇到了这个问题。这是我的日志文件。请任何人帮助我。


属性:[ProcessorArchitecture] = AMD64 {string}

属性:[VersionNT] = 6.1.1 {version}

运行检查包'Microsoft。 .NET Framework 4.5.2(x86和x64)',阶段BuildList

读取注册表项'HKLM \Software\Microsoft \ NET Framework Setup \NDP\v4 \\'的值'Release' \\ Full $

读取整数值379893

设置值'379893 {int}'为属性'DotNet45Full_Release'

读取值'v4'的注册表项"HKLM \ SOFTWARE \ Microsoft \ NET Framework Setup \OS Integration"
$
无法读取注册表值

未设置属性'DotNet45Full_OSIntegrated'的值

已为程序包"Microsoft .NET Framework 4.5"设置了以下属性。 2(x86和x64)':

属性:[DotNet45Full_Release] = 379893 {int}

运行检查命令'DotNetFX452\NDP452-KB2901907-x86-x64- AllOS-ENU.exe'
$
在属性'InstallMode'和值'HomeSite'上运行运算符'ValueEqualTo'的结果:true

检查命令'DotNetFX452 \的结果NDP452-KB2901907-x86-x64-AllOS-ENU.exe'是'旁路'

运行检查命令'DotNetFX452 \ NDP452-KB2901907-x86-x64-AllOS-ENU.exe'

在属性'InstallMode'和值'HomeSite'上运行运算符'ValueEqualTo'的结果:true

检查命令'DotNetFX452\NDP452-KB2901907-x86-x64-的结果AllOS-ENU.exe'是'绕过'

运行检查命令'DotNetFX452\NDP452-KB2901954-Web.exe'

运行运算符'ValueNotEqualTo'的结果属性'InstallMode'和值'HomeSite':false

运行运算符'ValueGreat的结果属性'DotNet45Full_Release'和值'379893'的erThanEqualTo':true

检查命令'DotNetFX452 \NDP452-KB2901954-Web.exe'的结果是'绕过'

运行检查命令'DotNetFX452\NDP452-KB2901954-Web.exe'
$
在属性'InstallMode'上运行运算符'ValueNotEqualTo'并且值'HomeSite'的结果:false

在属性'DotNet45Full_Release'和值'379893'上运行运算符'ValueGreaterThanEqualTo'的结果:true

检查命令'DotNetFX452 \NDP452-KB2901954-Web.exe'的结果是'绕过'

'Microsoft .NET Framework 4.5.2(x86和x64)'RunCheck结果:无需安装

启动应用程序。

URLDownloadToCacheFile失败HRESULT'-2146697211'

错误:尝试下载'http:// fv6pj72:9999 / ClickOnceDeployer.application'时出错。



解决案


如果一个用户设置Internet Explorer的高级安全选项"警告如果安全和不安全模式"之间变化;在部署目标计算机上,如果正在安装的ClickOnce应用程序的安装URL从非安全
重定向到安全站点(反之亦然),安装将失败,因为Internet Explorer警告会中断它。$


要解决此问题,您可以执行以下操作之一:
$


- 清除安全选项。$
- 确保设置URL不会以改变安全模式的方式重定向。

- 完全删除重定向并指向实际的设置URL。 / p>

最好的问候,


Bob


I tried to deploy click once application in my local machine .I tried to publish the virtualbox using IIS server.I got this issue.This my log file.Please any one help me.

Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Microsoft .NET Framework 4.5.2 (x86 and x64)', phase BuildList
Reading value 'Release' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
Read integer value 379893
Setting value '379893 {int}' for property 'DotNet45Full_Release'
Reading value 'v4' of registry key 'HKLM\SOFTWARE\Microsoft\NET Framework Setup\OS Integration'
Unable to read registry value
Not setting value for property 'DotNet45Full_OSIntegrated'
The following properties have been set for package 'Microsoft .NET Framework 4.5.2 (x86 and x64)':
Property: [DotNet45Full_Release] = 379893 {int}
Running checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe' is 'Bypass'
Running checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe'
Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': true
Result of checks for command 'DotNetFX452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe' is 'Bypass'
Running checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet45Full_Release' and value '379893': true
Result of checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe' is 'Bypass'
Running checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe'
Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': false
Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet45Full_Release' and value '379893': true
Result of checks for command 'DotNetFX452\NDP452-KB2901954-Web.exe' is 'Bypass'
'Microsoft .NET Framework 4.5.2 (x86 and x64)' RunCheck result: No Install Needed
Launching Application.
URLDownloadToCacheFile failed with HRESULT '-2146697211'
Error: An error occurred trying to download 'http://fv6pj72:9999/ClickOnceDeployer.application'.

解决方案

Hi,

If a user has set Internet Explorer Advanced Security option "Warn if changing between secure and not secure mode" on the deployment target computer, and if the setup URL of the ClickOnce application being installed is redirected from a non-secure to a secure site (or vice-versa), the installation will fail because the Internet Explorer warning interrupts it.

To resolve this, you can do one of the following:

- Clear the security option.
- Make sure that the setup URL is not redirected in such a way that changes security modes.
- Remove the redirection completely and point to the actual setup URL.

Best Regards,

Bob


这篇关于在C#中进行Clickonce部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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