https://bugzilla.novell.com/show_bug.cgi?id=406897
Summary: Null reference exception on Settings.Reload
Product: Mono: Class Libraries
Version: 1.9.0
Platform: x86
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: Customer
Created an attachment (id=226346)
--> (https://bugzilla.novell.com/attachment.cgi?id=226346)
ZIP file containing a CSPROJ with all needed files
When I call Properties.Settings.Default.Reload(), Mono crashes with the
following null exception:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at System.Configuration.CustomizableFileSettingsProvider.Reset
(System.Configuration.SettingsContext context) [0x00000]
at System.Configuration.LocalFileSettingsProvider.Reset
(System.Configuration.SettingsContext context) [0x00000]
at System.Configuration.ApplicationSettingsBase.Reload () [0x00000]
....
I've encountered this problem in both Windows XP (32-bit) and the Mono-provided
openSUSE 10.3 image. I've attached a test case that has a Settings file with a
single Bool value in it. Clicking the button fires off a
Properties.Settings.Default.Reload(), which will crash the executable. I've
attached the entire CSPROJ (Visual Studio 2005), since the Settings file is
needed to demonstrate the error.
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs