Solved

Applicaton Settings Disappearing

Posted on 2007-11-15
4
236 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 70

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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