471,317 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 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 1236

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by djmc | last post: by
2 posts views Thread by John Spiegel | last post: by
1 post views Thread by modi321 | last post: by
7 posts views Thread by schoenfeld.one | last post: by
3 posts views Thread by John | last post: by

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.