ClickOnce应用程序无法启动

时间:2018-05-25 12:38:59

标签: windows-10 clickonce

只有在这台Win 10 PC上它才能正常工作,它不会启动,没有消息原因,甚至在日志中也没有。我甚至禁用了防火墙和防病毒软件。我甚至尝试过复制exe文件并在没有部署的情况下启动它并且工作正常,因此程序没有问题。接下来我该怎么办?

这是日志:

PLATFORM VERSION INFO
    Windows             : 10.0.17134.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll       : 4.7.3056.0 built by: NET472REL1
    clr.dll             : 4.7.3110.0 built by: NET472REL1LAST_C
    dfdll.dll           : 4.7.3056.0 built by: NET472REL1
    dfshim.dll          : 10.0.17134.1 (WinBuild.160101.0800)

SOURCES
    Deployment url          : file:///C:/Users/Vlatka/Desktop/Sindikat.appref-ms%7C
                        Server      : Microsoft-IIS/10.0
                        X-Powered-By    : ASP.NET
    Deployment Provider url     : http://...

ERROR SUMMARY
    No errors were detected during this operation.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    * The manifest for this application does not have a signature. Signature validation will be ignored.

OPERATION PROGRESS STATUS
    * [25.5.2018. 11:09:29] : Activation of C:\Users\Vlatka\Desktop\Sindikat.appref-ms| has started.
    * [25.5.2018. 11:09:29] : Performing necessary update check as specified by the deployment.
    * [25.5.2018. 11:09:30] : Activation of C:\Users\Vlatka\Desktop\Sindikat.appref-ms| succeeded.

ERROR DETAILS
    No errors were detected during this operation.

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

3 个答案:

答案 0 :(得分:0)

问题是在应用程序启动之前具有clickonce更新的新Windows Defender,我只是更改了它在应用程序启动之后寻找更新。尽管选择了“警告”选项,但Defender仍未警告用户是否要允许该应用启动。

enter image description here

答案 1 :(得分:0)

发布之前,请不要忘记在“属性>安全”中选择“这是一个完全信任的应用程序”选项。

enter image description here

答案 2 :(得分:0)

如果您在装有 Windows 10 和 .NET Framework 4.8 的全新计算机上进行安装,但它没有启动,您很可能需要安装 Visual Studio 来安装您的应用可能需要的任何旧依赖项.

这绝对不是一个完美的解决方案,但至少它有效。