gpt4 book ai didi

c# - clickonce 下载文件失败

转载 作者:可可西里 更新时间:2023-11-01 11:26:44 27 4
gpt4 key购买 nike

当我运行 myApp.application 时出现安装失败。从日志错误文件中我得到这个:

    + download error file:///C:/Users/userj/Documents/Visual Studio 2013/Projects/foo/foo/bin/x86/Release/ico.ico.deploy.
+ that the file or folder can't be found. 'C:\Users\userj\Documents\Visual Studio 2013\Projects\foo\foo\bin\x86\Release\ico.ico.deploy'.
+ that the file or folder can't be found. 'C:\Users\userj\Documents\Visual Studio 2013\Projects\foo\foo\bin\x86\Release\ico.ico.deploy'.
+ that the file or folder can't be found. 'C:\Users\userj\Documents\Visual Studio 2013\Projects\foo\foo\bin\x86\Release\ico.ico.deploy'.

ico.ico 文件位于服务器和 Application Files 文件夹内的本地文件夹中。那么为什么我会收到此错误?我错过了什么?

编辑:

为什么 clickonce 期望在根目录而不是 Application Files 文件夹中找到 .deploy 文件?

最佳答案

当您发布应用程序时,您应该使用 YourApp.application 安装/运行该应用程序从您的发布文件夹

如果您运行 YourApp.application位于您的调试/发布文件夹,您将收到此类错误,如果您单击Detail错误对话框的按钮,您将看到包含一些错误的日志文件,包括您在问题中发布的错误。

enter image description here

关于c# - clickonce 下载文件失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33553386/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com