Basically the problem is that each time the assembly version changes (i.e. the user installs a new version of the application) all their settings are reset the the defaults (or more accurately a new user.config file is created in a folder with a different version number as the name)
How can I keep the same settings when upgrading versio...
Ok, I have a ClickOnce app that I'm testing and I ask the user for a couple of pieces of information the first time they use load the app; Customer Id and Name. I then set the Properties so that they'll be saved across sessions. The property is Properties.Settings.Default["Customer ID"] and similar for name.
So I uninstall the applicati...
I'm building an ASP.NET application. One of the reqiurments is to limit number of different computers from which users can access the content of the site (for example 5 computers). It doesn't have to be perfect, if a normal user, with no IT knowledge will not be able to ommit the checking - the solution will be K.
I'm thinking about a ...
Good afternoon all.
I've created a test project, and added some user settings to it. I'd like to do this because one of the tests changes a setting, and other tests read that settings.
However, I find that my user settings will not save (ie my.settings.save does nothing) - well, if it does, then its not persisting because when I end th...
Hello,
In .NET you can select a hashtable as type for a usersetting. However when I save it and retrieve it in this way, it doesnt seem to have saved it at all.
Hashtable t = new Hashtable();
t.Add(1,"Foo");
t.Add(2,"Bar");
Properties.Settings.Default.Setting = t;
Properties.Settings.Default.Save();
if(Properties.Settings.Default.Sett...
Hi,
I'm exploring all the options to persist user settings. The artilce in the url http://stackoverflow.com/questions/803245/user-specific-settings-files-for-a-windows-form-application-local-xml-file-or-da convinced me to store the settings into a db as my application is a standalone communicating with a DB. Is there any provider class ...
We have a .NET 2.0 application out where we've set the user settings Roaming = False (the default value).
Now, some citrix users complain that the settings are not stored. We belive the problem will be solved by setting Roaming = True.
But how do we update the application at the clients and at the same time restore previously stored ...
I have a panel to which button controls are added in runtime. The panel and all its contents should be saved in the user settings (Properties.Settings.Default.MyPanel). However, while the settings object does accept strings, ints, etc. as input and stores it correctly when calling the Settings.Default.Save() method, it doesn't when I'm s...
We had a rare exception occur when reading the standard .Net user settings (this are the ones found in "project properties" in VS 2008):
System.Configuration.ConfigurationErrorsException was caught
Message="Configuration system failed to initialize"
Source="System.Configuration"
BareMessage="Configuration system failed to initiali...
I'm a little confused by the different ways visual studio allows dynamic values to be saved to a project, and how they are intended to be used. I understand that if I need to include binary information like an image or a sound file with my application I need to add that to a resource file. But if I'm saving something like a file path as ...
Hello guys.
I'm having some weird trouble with a project on VS2005.
I have a few user settings configured, but every time i start the project (on release mode) it comes with a previously tested configuration.
I've tried synching it many times, but i cannot succeed. Most of these properties are empty strings by default. I have a instal...
Hi,
I am trying to modify the userSettings section (Properties.MyApp.Default) in the MyApp.exe.config file during the installatio of my WPF application using an MSI installer.
I basically implemented it like in this excellent article: http://raquila.com/software/configure-app-config-application-settings-during-msi-install/
The differe...
My service is a DLL and it can be installed multiple times. The DLL has its settings stored in Settings.settings. Each instance of the DLL will have its own Settings.settings. Can this be done with Settings.settings, or do I have to create my own configuration scheme? I want to avoid reinventing the wheel if possible. I don't have to ...
I have the following situation:
- Need to check manually for updates (Can not use clickOne i suppose) for several of our applications.
So i need a master application which can launch for example 5 applications.
This master application can check for updates of his child applications. So what i did is empty the folder with the old applic...
I have the following classes
[Serializable()]
public class ColumnList
{
public ColumnList()
{
ListOfColumns = new List<Column>();
}
public ColumnList(string name)
: this()
{
Name = name;
}
List<Column> ListOfColumns { get; set;}
public string Name { get; set; }
//Extra method...
I am writing a C# program in Microsoft Visual Studio 2010 that stores some information inside of the local user settings like so:
Properties.Settings.Default.userActive.Add(connection.Active);
Properties.Settings.Default.Save();
I also have a Visual C++ application that would like to read these stored user settings. Is it possible f...
Hi Guys,
I have a web view screen in my application, Where I am getting the data in different languages from server. So when I am setting the locale at back end I mean, the application is not closed. While I am setting the locale the application is closed and getting exception.
I have done like this, I opened my application went to web...
hey everyone
i would like to know a good software engineering way to store user preferences in a web app.
to clarify further, my app has commands that the user can choose, so
i added a button that when some commands are selected, these commands are saved as favorites somewhere on the client's machine, that way if user X logs in at anytim...
I'm using .NET user settings feature and I'm facing a problem.
When the application is uninstalled, then installed back, the user settings are lost.
I understand it's by design, and I want to be able to give the choice to the user in the installer.
Could you please give me some pointers to articles or documentation that will helps me?...
What approach do you recommend for persisting user settings in a WPF windows (desktop) application? Note that the idea is that the user can change their settings at run time, and then can close down the application, then when starting up the application later the application will use the current settings. Effectively then it will appe...