Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7914509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:08:24+00:00 2026-06-03T14:08:24+00:00

I have a current issue where updates to my clickonce application are messing up

  • 0

I have a current issue where updates to my clickonce application are messing up the connection string. This mainly happens when I make an update to a backup box and then run it on the production box for the first time (after the backup box tests). My clickonce app sees the update hosted from the backup server and pulls it down, overwriting the good IP in the process.

To the user, everything is still working but in reality they are looking at a test database.

I was reading and it appears that if I move my connection string to a “user” setting I can get it to keep the existing value. This will only work if my existing value is a non-default apparently.

So, to keep an existing user connection string I need to set a project setting default that I wont be able to use on my client machine, forcing me to modify it after the app is deployed initially?

By doing that will I pass the check that the update process does and get to keep my user configuration values?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:08:26+00:00Added an answer on June 3, 2026 at 2:08 pm

    I think you can solve this problem by setting the connection string in a config file within the users application data folder. When the application starts, check to see if the resource exists. If not, create it with a default value and then set change through your application. After applying the change, save it to the resource and each time the user starts his application, it should load the same resource.

    To get user-specific, application data folder that is safe for click once, get the following folder path to save the configuration resource file to.

    string appDataPath = 
        Path.Combine(
            Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData,
            "[Company or App Name]"));
    

    This will give you a path that you can use to read and write data to on the end-users machine. The data in this folder will not be over-written with each deployment and the folder location is also not obfuscated like the deployment folders for your application.

    If this doesn’t answer your question, please ask more in the comments. I’ll update this answer to reflect the nature of your needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The current issue im facing is comes from the following scenario. I have a
I have three current thoughts on how to do this: re-implement AuthenticationService, which uses
As a beginner in Ocaml, I have this current working code: ... let ch_in
Can anyone help me getting started with this? We have a current keygen for
We have a legacy VB6 application that updates itself on startup by pulling down
We currently have an application that is roughly 22 megs total. Our current deployment
I have had this issue for sometime on my app and it always bothered
Edit: I still have not resolved this issue. If anyone has advice I would
i have an issue with my current database with mysql. i have over 100
I have current a developed app which I am going to submit in just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.