Solved

Applicaton Settings Disappearing

Posted on 2007-11-15
4
217 Views
Last Modified: 2013-12-17
I am working in VB.Net using application settings to store preferences rather than an INI file or the registry. I defined all of the settings in Visual Studio under project properties and settings. All of the settings are user in scope. This works well most of the times, but on occasion the settings disappear. I haven’t been able to put a finger on what I do to erase them.

Two questions:
1)      What am I doing wrong and how do I fix it?
2)      Is there something other than settings that I should be using?

Thanks
Randy
0
Comment
Question by:randymiller
  • 2
4 Comments
 
LVL 18

Expert Comment

by:jcoehoorn
ID: 20293186
Do you have it set to save settings automatically on exit, or do you call my.settings.save?
0
 

Author Comment

by:randymiller
ID: 20293911
Yes, that part isn't a problem. I can exit and launch the program several times with no problems, then when I go in they are all blank. It isn't tht they didn't get updated, but that they got wipped out.

The vast majority of my experiense is in the debug environment, could the config file be deleted or moved?
0
 

Author Comment

by:randymiller
ID: 20294089
I am not sure, but it may happen when I publish.

Randy
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 20294448
It is a fact then when you publish, you loose your user's settings. Search for "CallUpgrade" from http://www.emoreau.com/Entries/Articles/2007/03/AppSettings-revisited.aspx for a workaround
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now