* CustomizableLocalFileSettingsProvider.cs: When saving the
properties, ignore the properties marked with
ApplicationScopedSettingAttribute, as they are not serialized in .net
by FileSettingsProvider (the default class used to save the config,
and the one using the class we are modifying).
Fixes#468658.
svn path=/trunk/mcs/; revision=151798
* CustomizableLocalFileSettingsProvider.cs: The name of the child
class of Settings should be 'normalized' by replacing the chars that
are invalid in a xml element name with their corresponding hexadecimal
values. This is specially visible when using classes container in
other classes.
Fixes#471289.
svn path=/trunk/mcs/; revision=151607
* CustomizableFileSettingsProvider.cs: reset the property value
instead of using the DefaultValue.
* SettingsPropertyValue.cs: new Reset() method.
* ApplicationSettingsBase.cs: Reset happens in Reload().
Patch by Andrew Kurochka that fixes bug #532180.
svn path=/trunk/mcs/; revision=140950
* WebConfigurationManager.cs: added code in the static constructor
to enable retrieving application settings via
ApplicationSettingsBase from within asp.net applications. Fixes
bug #491531
* ApplicationSettingsConfigurationFileMap.cs: added.
2009-04-03 Marek Habersack <[email protected]>
* CustomizableFileSettingsProvider.cs: added a way for System.Web
to specify path to the current Web.config. Fixes bug #491531
svn path=/trunk/mcs/; revision=130909
Fix for bug 439943.
* SettingValueElement.cs : do not write value element twice.
* CustomizableFileSettingsProvider.cs : create "value" element
instead of a document fragment so that the output from
SettingValueElement could become consistent.
Null binary value caused crash. Set appropriate
SerializedValue for each serialization type.
* SettingsPropertyValue.cs : output only when the value is
non-null.
svn path=/trunk/mcs/; revision=118565
* SettingValueElement.cs, CustomizableFileSettingsProvider.cs :
Fixed bug #439943. Xml deserialization for complex content was
not done correctly.
svn path=/trunk/mcs/; revision=117961
* System/System.Configuration/CustomizableFileSettingsProvider.cs:
* System/System.Configuration/ApplicationSettingsBase.cs:
* System.Configuration/System.Configuration/ClientConfigurationSystem.cs:
* System.Configuration/System.Configuration/ConfigurationManager.cs:
Generate the same file name for the local settings file and properly
save the configuration to it. Not loading it yet.
svn path=/trunk/mcs/; revision=117573
* CustomizableFileSettingsProvider.cs: when reading application or
user settings, only read those settings appropriate for the context.
This avoids duplicate key errors when 2 different groups have a key
with the same name.
* ApplicationSettingsBase.cs: the context is a hashtable with several
values set upon creation: SettingsKey, GroupName and
SettingsClassType.
Fixes bug #432466.
svn path=/trunk/mcs/; revision=114853
* ApplicationSettingsBase.cs: honor the IsSynchronized value in the
Context, Properties, PropertyValues and Providers. All of them might
initialize an instance field for the class. Hopefully this fixes some
nullrefs.
svn path=/trunk/mcs/; revision=114842
* ApplicationSettingsBase.cs: If there is no explicit
SettingsSerializeAs attribute to specify the format, distinguish
between plain string and XML by checking if the TypeConverter for the
property type supports string conversions. If it doesn't then we are
present with XML.
[Fixes bug #414445]
svn path=/trunk/mcs/; revision=109706
ConfigurationErrorsException when any attribute other than 'Name'
is found when referencing a shared listener. Fixes bug #404054.
Added support for the traceOutputOptions attribute on 2.0 profile.
Fixes bug #403583.
* ConfigXmlDocument.cs: Implement IConfigErrorInfo on all Node classes.
svn path=/trunk/mcs/; revision=106628
* System_test.dll.sources: Added ConfigurationExceptionTest.cs.
* ConfigurationExceptionTest.cs: Removed local bareMessage field, and
use base.Message instead. Fixed default cor to invoke String ctor of
SystemException. Fixed Message property to only add filename if not
null or zero-length string, and only add line if not zero.
svn path=/trunk/mcs/; revision=106582
* CustomizableFileSettingsProvider.cs : when a property is found
only in the config file and not in the corresponding config type,
do not raise NRE but just add it as a simple property value.
Fixed bug #343459.
svn path=/trunk/mcs/; revision=90108
* SettingValueElement.cs : implement Reset().
* CustomizableFileSettingsProvider.cs : fixed company name getter
and product name getter.
LoadPropertyValue() should expect null ValueXml.
* LocalFileSettingsProvider.cs : time to switch. With a bit of
directory name difference, it should work.
svn path=/trunk/mcs/; revision=80469
* CustomizableLocalFileSettingsProvider.cs :
- added extern alias to avoid reference and I could enable
Initialize() again.
- Copied default user config path stuff (Company/Product/Version)
from MWF Application.cs.
- SaveProperties() and SavePropertiesNoRoaming() are unified, and
mostly rewritten to create userSettings, set value correctly, etc.
- GetPropertyValues() should collect default values as well.
It is not enabled yet, as Configuration.Save() seems to do wrong
and could overwrite application exe.config.
svn path=/trunk/mcs/; revision=79474
* CustomizableLocalFileSettingsProvider.cs : contribution for
LocalFileSettingsProvider implementation, by Noriaki Okimoto
([email protected]), modified by myself to fit for System.dll.
Origin of code license assignment at
http://ojk.sppd.ne.jp/ojkblog/?date=20070603#p01.
* LocalFileSettingsProvider.cs : rewriting to use above.
Due to some kind of compiler issue it is not enabled yet.
* System.dll.sources :
added CustomizableLocalFileSettingsProvider.cs.
svn path=/trunk/mcs/; revision=78561
* ConfigXmlDocument.cs : added explicit interface implementations.
* ApplicationSettingsBase.cs : split deeply-nested get_Properties()
into itself and a method. Treat default LocalFileSettingsProvider
as a (valid) settings provider. Removed a fixme (only public
members should be available).
* SettingsBase.cs : check lock state in Save().
* SettingsProviderCollection.cs : remove bogus table field which
conflicts with the table in base ProviderCollection class.
svn path=/trunk/mcs/; revision=78240
* SettingsBase.cs : property values are filled only when each
property is accessed. It should not use virtual providers,
properties or context internally since they could be overriden.
* SettingsPropertyValue.cs : to serialize value as string, use
TypeConverter as well (as deserialization).
* SettingsProviderCollection.cs : (Add) null arg check.
* SettingsBaseTest.cs : new test.
* ApplicationSettingsBaseTest.cs : added Providers().
* System_test.dll.sources : added SettingsBaseTest.cs.
svn path=/trunk/mcs/; revision=78181
Add the possibility to bundle also the machine.config file, from
#80305.
* mkbundle.cs: Add option --machine-config. Warn the user that a
bundled machine.config file should be checked that it doesn't
contain sensitive data like private machine keys.
If that option was used, write the contents of the machine.config
file to the asm output file, and write code to call
mono_register_machine_config() with the data to the C output file.
svn path=/trunk/mcs/; revision=70489