Weird behaviour of the app.config deployment after updating it

I moved some hardcoded settings to a custom Section (so I did not use the <appSetting> tag) in the app.config of my ClickOnce application. When updating, the clients got an error stating that the server gave a 404 not found error for the file "myapp.exe.config.deploy". Browsing on the server I did find the changed app.config there, only it was named app.config.deploy.

Thinking to be smart I renamed the app.config to myapp.exe.config on the development machine and published again. That did not work... However after naming the file back to app.config and publishing the error went away and the clients used the setting happily!

Please explain what went wrong?


In the properties of the app.config I had set the build action to Content and the Copy to outputdirectoru to Always Copy. Setting these properties to None and Do not copy made the problem go away while the program still successfully reads and writes from the condfiguration settings. Weird, but OK, it works!


  • Casting float to string without scientific notation
  • Xcode compile error on bool when device not connected
  • Sharing custom code between two NodeJS microservices
  • Form Post with enctype = “multipart/form-data” causing parameters to not get passed
  • ActionBar with appcompat library v7 (ava.lang.IllegalStateException: You need to use a Theme.AppComp
  • angularjs - ng-show doesn't update class when $interval triggers
  • How to convert list into string with quotes in python
  • docker-compose: connection refused between containers, but service accessible from host
  • Use query params of parent route to refresh the model in subroute
  • reset jquery smartwizard
  • JSON data through JS/AJAX into PHP
  • CRASH: *** -[__NSArrayM objectAtIndex:]: index 4294967295 beyond bounds [0 .. 9]
  • calculating number of bytes of each row in an image
  • Android Database Error - getWriteableDatabase
  • What does “t” refer to in this SQL?
  • CERN ROOT exporting data to plain text
  • aapt.exe'' finished with non-zero exit value 1
  • Spring Cloud Microservice Architecture Confusion
  • Tamper-proof configuration files in .NET?
  • uniform generation of points on 3D box
  • Code in Job's Script Block after Start-Process Does not Execute
  • SharedPreferences or SQLite Database?
  • Django simple Captcha “No module named fields” error
  • Why does access(2) check for real and not effective UID?
  • Cancel a live stream “fast motion” catch-up in Flash
  • Q promise. Difference between .when and .then
  • Is there any way to access browser form field suggestions from JavaScript?
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • How to add a column to a Pandas dataframe made of arrays of the n-preceding values of another column
  • Running a C# exe file
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Hits per day in Google Big Query
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Linking SubReports Without LinkChild/LinkMaster
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass