473,387 Members | 1,771 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,387 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?! :-)

Thanks!

Chad
Jan 5 '06 #1
0 1324

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

Similar topics

4
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...
3
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...
2
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...
1
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...
1
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...
7
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...
9
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...
0
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...
3
by: John | last post by:
Hi Is there a way to have application settings in asp apps, like those in winform apps? Thanks Regards
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.