[Mono-bugs] [Bug 343837] New: NullReferenceException reading .exe.config file
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Nov 23 10:46:16 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=343837
Summary: NullReferenceException reading .exe.config file
Product: Mono: Class Libraries
Version: 1.2.6
Platform: x86-64
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: mark.lambert at nonlinear.com
QAContact: mono-bugs at ximian.com
Found By: Beta-Customer
Reading a UserScopedSetting from a config file with an applicationSettings
section can cause a NullReferenceException:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at System.Configuration.SettingsPropertyValue.get_Name () [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\SettingsPropertyValue.cs:71
at System.Configuration.SettingsPropertyValueCollection.Add
(System.Configuration.SettingsPropertyValue property) [0x00011] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\SettingsPropertyValueCollection.cs:52
at System.Configuration.CustomizableFileSettingsProvider.LoadPropertyValue
(System.Configuration.SettingsPropertyCollection collection,
System.Configuration.SettingElement element, Boolean allowOverwrite) [0x00063]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\CustomizableFileSettingsProvider.cs:661
at System.Configuration.CustomizableFileSettingsProvider.LoadProperies
(System.Configuration.ExeConfigurationFileMap exeMap,
System.Configuration.SettingsPropertyCollection collection,
ConfigurationUserLevel level, System.String sectionGroupName, Boolean
allowOverwrite) [0x00064] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\CustomizableFileSettingsProvider.cs:677
at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyCollection collection) [0x0001c] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\CustomizableFileSettingsProvider.cs:702
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues
(System.Configuration.SettingsContext context,
System.Configuration.SettingsPropertyCollection properties) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\LocalFileSettingsProvider.cs:68
at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider
(System.Configuration.SettingsProvider provider) [0x00067] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\ApplicationSettingsBase.cs:179
at System.Configuration.ApplicationSettingsBase.GetPropertyValue
(System.String propertyName) [0x00042] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\ApplicationSettingsBase.cs:201
at System.Configuration.ApplicationSettingsBase.get_Item (System.String
propertyName) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.6\mcs\class\System\System.Configuration\ApplicationSettingsBase.cs:209
at Settings2.Settings.get_CallUpgrade () [0x00000]
at Settings2.Program.Main () [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.
You are the assignee for the bug.
More information about the mono-bugs
mailing list