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夹中的服务器和本地Application Files夹中。 那么为什么我得到这个错误? 我错过了什么?

编辑:

为什么clickonce希望在根目录而不是Application Files夹中创build一个.deploy文件?

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

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

在这里输入图像说明