473,237 Members | 1,171 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,237 software developers and data experts.

Modify Windows Application "User Profile Settings" from a class library (user.config)

Hi everyone,

I have a common class library (call it common_library) that I
include/reference in my projects. In this class library, I would like to
have it save certain settings to the user.config for the application.
However, when I put in

Properties.Settings.Default["SOMEKEY"] = somevalue;

it kicks back an exception
(System.Configuration.SettingsPropertyNotFoundExce ption) that their is no
property in my common_library, when it should be trying to save the settings
in the application user settings. I've looked at ApplicationSettingsBase,
SettingsBase, Context, etc, but can't seem to figure it out. Since I can't
set it to the namespace of the application (it is a common library), I can't
tell it to use the application's "Properties.Settings..." setup. I can't
figure out how to pass the provider to the class library so that I can
manipulate it there, and then save it. Help?! :-)


Jan 5 '06 #1
0 1318

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: djmc | last post by:
Hi, Without using a database, what is the best way to store application settings that need to be updated by a webmaster? I would like to provide a configuration screen for the webmasters who...
by: Robin Tucker | last post by:
I'm a bit confused about where to put my program settings. Firstly, I can choose (I suppose) between .ini, .xml or the registry. Which one is best? Secondly, *where* do I place any files I...
by: John Spiegel | last post by:
Hi all, I'm looking for suggestions on storing classifications of application settings in a WinForms app. I've got a couple ideas using XML config files. One is to have a set of .config files...
by: modi321 | last post by:
Everyone, I have a question on how to use persistant application settings with 2.0. I understand I can use defined types like ints, strings, and so on, but how about my own custom class? The...
by: GAZ | last post by:
Hello all, We have a bit of a problem with application settings and user control. In short, we have developed a user control that should, as it happenes, get a value stored in application...
by: schoenfeld.one | last post by:
How are Application Settings supposed to be used in multi-tiered applications? If I have a winforms application consising of 2 projects 1. UI PROJECT: has the settings 2. DATABASE...
by: Alex | last post by:
Get the Name and Phone Number of the Current Windows User in a .NET Application I am writing a simple .NET (C#) application. It needs to "automatic" get the Name (last, first) and phone number...
by: Andy B | last post by:
When I ran the asp.net admin tool to setup web application settings, I get the following notice when I went to profile and chose to use a single provider for all features: "The provider wasn't...
by: John | last post by:
Hi Is there a way to have application settings in asp apps, like those in winform apps? Thanks Regards
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.