471,356 Members | 1,643 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

configuration

lee
I have been having a problem with the following snippet:

//Setting up AttributeDictionary
SettingsAttributeDictionary ad = new
SettingsAttributeDictionary();

UserScopedSettingAttribute usera = new
UserScopedSettingAttribute();

ad.Add(usera.GetType(), usera);

// Adding new SettingsPropery
SettingsProperty mySp= new SettingsProperty("NewProperty", typeof(String)
, new LocalFileSettingsProvider(), false, "Hello World",
SettingsSerializeAs.String, ad, true, true);

//MySettings here is just the namespace of the project
// Add Property to Properties collection and saving
MySettings.Default.Properties.Add(new
System.Configuration.SettingsProperty("AnotherProp "));
MySettings.Default.Save();
Upon saving the new Property is not reflected in the User.config file
located

C:\Users\Administrator\AppData\Local\AppName\AppNa me.exe_\1.0.0.0

Is there something I am doing wrong or is it just not designed to be used
this way as it appears that this code doesn't talk to the underlying
configuration subsystem only the settings subsystem

Aug 6 '08 #1
1 1393
Hello lee,

I notice that you have posted the same question in this group, which I have
already responded. So please check my reply there and please reply to me in
that thread so I can follow up with you in time.

Best regards,
Feng Chen
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications .

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 6 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Water Cooler v2 | last post: by
4 posts views Thread by Michael Lang | last post: by
6 posts views Thread by Jeff Hegedus | last post: by
8 posts views Thread by Alberto | last post: by
7 posts views Thread by Arno R | last post: by
7 posts views Thread by =?Utf-8?B?RG91Z2llIEJyb3du?= | last post: by
reply views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | 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.