Clickonce无法下载文件

时间:2015-11-05 19:41:49

标签: c# windows winforms deployment clickonce

当我运行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文件?

1 个答案:

答案 0 :(得分:3)

发布应用程序时,应使用发布文件夹中的YourApp.application安装/运行应用程序。

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

enter image description here

相关问题