user-settings

Place to store user settings in Sharepoint besides profiles

Is user profiles an appropriate place to store things like number of items per page in a custom grid user selected? (I you can store it in the view, but it won't be per user this way). My first though was to store these settings in user profiles, but there are problems with access permissions for programmatically creating user profile p...

C# Settings Rembering Settings

How do I get my program to remember the users settings? ...

.NET 2.0 Application Settings (user.config) file location

Hi, I'm trying to customize the location of user.config file. Currently it's stored in %AppData%\[CompanyName]\[ExeName]_Url_[some_hash]\[Version]\ I want to it be something like %AppData%\[CompanyName]\[ProductName]\ so there's no version number and no hash stuff. First question: can this be done and how? What are the implicati...

How to store a file in LDAP?

I'm looking for the best way to store a configuration file in an LDAP server. My application used to save the user settings in an xml file. The user logins have been centralized in an LDAP server. The users are stored as "inetOrgPerson" in the LDAP server. I would like to attach the xml file to each user. What would be the best way to d...

How to have a program option set by an admistrator that the user can't change?

My application needs to read an option on startup to check if it should start in read-only mode. The option should not be allowed to be changed by the user. I usually do this now using a value set in the HKLM\Software section of the system registry. The administrator sets the value and the users can't change it (they don't have writ...

Application/User Settings with Roaming Profiles

Hi Guys any help would be much appreciated. We have an application that’s installed at several locations but we are having an issue at one particular site. In short the application settings (My.) are not being saved after a reboot. The application is build in VB.Net v3.5 Framework and we are not experiencing any issues elsewhere. T...

How to enable user settings to libraries used by a web project hosted WCF service?

By default a IIS hosted WCF service can't use libraries that uses user scope settings. The only scope that it accepts is the Application scope. When you try to do otherwise it throws an exception: [System.Configuration.ConfigurationErrorsException]{"The current configuration system does not support user-scoped settings."} How to c...

Click-Once Deployment Overwriting User Settings

Click-once deployments are suppose to maintain user settings, but on this one application we have the user settings are overwritten to the Visual Studio default every time we publish an update. Any ideas of what might be happening? ...

How to load a separate Application Settings file dynamically and merge with current settings?

There are questions pertaining to reading settings from a separate config file and others similar to it, but my question is specific to application property settings (i.e. <MyApplication.Properties.Settings> - see XML file below) and how to load them dynamically. I tried the method in this post, which involved refreshing the entire appSe...

Is there a way to tell .NET where to look for the user settings file?

Basically multiple instances of our application will be launched but they need to have separate user settings. We currently have use "user settings" for that, and it works fine for a single instance (per windows user) but we would like to be able to launch multiple instances with say a settings path passed in via command line. Is there...

How to Write to a User.Config file through ConfigurationManager?

I'm trying to persist user settings to a configuration file using ConfigurationManager. I want to scope these settings to the user only, because application changes can't be saved on Vista/Win 7 without admin privileges. This seems to get me the user's configuration, which appears to be saved here in Win 7 ([Drive]:\Users\[Username]\A...

How do I supply extra info to IApplicationSettingsProvider class?

Perhaps this question has been asked before in a different way, but I haven’t been able to find it. I have one or more plugin adapter assemblies in my application all having the type IPlugin, for instance. Each adapter has its own settings structures stored in a common directory. Whether they are stored in one contiguous file or in s...

Is there a limit on a user setting size in .NET application?

I would like to serialize my object with many values as string(xml) into user settings. Is there a limit on how large a "string" user setting can be in a .NET application? I am extending ApplicationSettingsBase to save my settings. ...