[Mono-bugs] [Bug 353553] Properties in custom configuration sections derived from System. Configuration.ConfigurationSection must be public unlike in CLR

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 13 22:33:16 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=353553

User rcook at opiumtrail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=353553#c1





--- Comment #1 from Richard Cook <rcook at opiumtrail.com>  2008-01-13 20:33:16 MST ---
The repro is to change the accessibility of MyProperty from public to internal.
This results in the following exception being thrown:

Unhandled Exception: System.Configuration.ConfigurationException: Unrecognized
attribute 'my-property'. ()
  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 Trac101.Program.Main (System.String[] args) [0x00000] 


-- 
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