Solved

Applicaton Settings Disappearing

Posted on 2007-11-15
4
208 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
Comment Utility
Do you have it set to save settings automatically on exit, or do you call my.settings.save?
0
 

Author Comment

by:randymiller
Comment Utility
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
Comment Utility
I am not sure, but it may happen when I publish.

Randy
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

6 Experts available now in Live!

Get 1:1 Help Now