[Mono-bugs] [Bug 353556] New: Mono configuration implementation does not appear to take account of TypeConverterAttribute instances placed on properties
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jan 13 23:28:01 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=353556
Summary: Mono configuration implementation does not appear to
take account of TypeConverterAttribute instances placed
on properties
Product: Mono: Class Libraries
Version: 1.2.5
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Configuration
AssignedTo: toshok at novell.com
ReportedBy: rcook at opiumtrail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Development
Created an attachment (id=190382)
--> (https://bugzilla.novell.com/attachment.cgi?id=190382)
Repro sources
I am attempting to use "[TypeConverter(typeof(TypeNameConverter))]" to specify
that a configuration property should be converted from "string" to "Type" using
the TypeNameConverter. This works fine under the CLR but fails with the
following under Mono:
Unhandled Exception: System.Configuration.ConfigurationErrorsException: The
value of the property 'my-property' cannot be parsed. () ( line 1)
at System.Configuration.ConfigurationElement.DeserializeElement
(System.Xml.XmlReader reader, Boolean serializeCollectionKey) [0x00000]
at System.Configuration.ConfigurationSection.DeserializeSection
(System.Xml.XmlReader reader) [0x00000]
at System.Configuration.Configuration.GetSectionInstance
(System.Configuration.SectionInfo config, Boolean createDefaultInstance)
[0x00000]
at System.Configuration.ConfigurationSectionCollection.get_Item
(System.String name) [0x00000]
at System.Configuration.Configuration.GetSection (System.String path)
[0x00000]
at
System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
(System.String configKey) [0x00000]
at System.Configuration.ConfigurationManager.GetSection (System.String
sectionName) [0x00000]
at Trac104.Program.Main (System.String[] args) [0x00000]
Please see attachment for repro.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list