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

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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
emjxAuthor Commented:
Abandoned ClickOnce as an option.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.