Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Applicaton Settings Disappearing

Posted on 2007-11-15
4
Medium Priority
?
268 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:Joel Coehoorn
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 70

Accepted Solution

by:
Éric Moreau earned 2000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

824 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