• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1087
  • Last Modified:

ClickOnce publish results in incorrectly/different named *.deploy files

I have been trying to publish a winforms application via ClickOnce but on installation, receive an error box with the message "Cannot download the applicaion. The application is missing required files.".

The file that is missing is */MyApp.exe.config.deploy". Looking in the publish location, that file is indeed missing, but there is a file called "app.config.deploy" and another called "MyApp.exe.deploy".

If I rename "app.config.deploy" to "MyApp.exe.config.deploy" I end up with the error "Could not find... ...app.config.deploy".

If I rename "MyApp.exe.deploy" to "MyApp.exe.config.deploy" I end up with the error "Could not find... ...MyApp.exe.deploy".

There is another file called "App.Debug.config.deploy" - if I rename that, again it ends up with the error "Could not find... ...App.Debug.config.deploy".

Idly renaming files seemed like a reasonable quick test to see if ClickOnce was just getting itself a bit muddled, but has left me thinking that I must have missed something somewhere and that the file "MyApp.exe.config.deploy" is just plain missing.

If anyone can advise and help get this working, it would be appreciated.
0
emjx
Asked:
emjx
  • 2
1 Solution
 
svaroggCommented:
It looks like your App.Config is somehow poorly configured.

After you compile your program, do you see in the Bin\Debug folder "App.Config" or "MyApp.exe.Config"?

If it's "App.Config" in the Bin folder I'd suggest do something like this:
Backup App.Config's content to some temporary file.
Delete App.Config from project and then do:
Add => Application Configuration File
Copy the backuped app.config content to the new file.
Try recompiling and see if it helped..
0
 
emjxAuthor Commented:
It is the *.deploy files which are causing the issues. I have tried as described in the OP. have put in a request to the mods to close this question without a solution - we have decided to go down alternative routes and abandon ClickOnce which seems to be pretty unconfigurable in terms of things like application details, icons, etc.
0
 
emjxAuthor Commented:
Abandoned ClickOnce as an option.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now