Jack
Jack

Reputation: 16724

Clickonce fails to download file

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'.

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?

EDIT:

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

Upvotes: 1

Views: 1750

Answers (1)

Reza Aghaei
Reza Aghaei

Reputation: 125197

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

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.

enter image description here

Upvotes: 2

Related Questions