Clickonce无法下载文件 [英] Clickonce fails to download file

查看:219
本文介绍了Clickonce无法下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When I run myApp.application I get an installation failure. From the log error file I get this:

    + 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 应用程序文件文件夹中的服务器和本地文件夹。那为什么我得到这个错误?我缺少什么?

the ico.ico file is both on the server and local folders within the Application Files folder. So why I'm getting this error? What am I missing?

编辑:

为什么clickonce希望找到根目录下的.deploy文件,而不是应用程序文件文件夹?

Why is clickonce expecting to found a .deploy file on root directory rather than Application Files folder?

推荐答案

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

When you publish an application you should install/run the application using YourApp.application from your publish folder.

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

If you run the YourApp.application that is located in your debug/release folder, you will receive such error and if you click on Detail button of error dialog you will see the log file containing some errors including those you post in the question.

这篇关于Clickonce无法下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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