1

I store connection string and other settings in application.setting(config) also deployed c# app with click once and published it on the web server to be accesible for my clients easily. but the problem is when the user install app from web server and set its customized settings on application then, each time I publish new version of my app ,when client update the app from web server then its current application setting will be replaced by file that I published on server so connection string of application on my system will set for the client in consequence client app could not connect to his db because of connection string changes pls let me know if there is a solution to avoid updating setting by click once?

franchesco totti
  • 552
  • 1
  • 6
  • 25
  • I followed this http://stackoverflow.com/questions/14400943/do-not-overwrite-settings-settings-file-with-clickonce?rq=1 and put the codes before program start up but didn't worked for me !! – franchesco totti Oct 18 '13 at 20:02

1 Answers1

0

It's not safe to store your data in the ClickOnce cache. Check out this article, which explains how to move it to LocalApplicationData so it is unchanged by updates.

RobinDotNet
  • 11,801
  • 2
  • 28
  • 33