[Mono-bugs] [Bug 374516] New: Configuration fails to load a Rectangle definition from executable configuration xml file
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Mar 27 13:54:46 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=374516
Summary: Configuration fails to load a Rectangle definition from
executable configuration xml file
Product: Mono: Class Libraries
Version: 1.9.0
Platform: 32bit
OS/Version: Windows XP
Status: NEW
Severity: Blocker
Priority: P5 - None
Component: Configuration
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: efbiaiinzinz at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Beta-Customer
Created an attachment (id=204404)
--> (https://bugzilla.novell.com/attachment.cgi?id=204404)
example configuration file that causes the exception to occur
Description of Problem:
Steps to reproduce the problem:
1. Create a new project in visual studio, select settings, add rectangle type
variable, make executable load the rectangle data from
Settings.Default.propname; and then store Rectangle.Emtpy into it and call
Settings.Default.Save(); to make sure xml file is created and will be there on
next run if it wan't before.
2. Run the executable in mono at least twice
Actual Results:
An exception is thrown when assembly tries to access properties in
Settings.Default, specifically
2008-03-27 19:38:28Z WhiteBoardMeeting - ERROR - Application error -
System.TypeInitializationException: An exception was thrown by the type
initializer for WhiteBoardMeeting.Properties.Settings ---> System.Exception: 0,
0, 0, 0 is not a valid value for Int32. ---> System.FormatException: Input
string was not in the correct format
at System.Int32.Parse (System.String s, NumberStyles style, IFormatProvider
fp) [0x00000]
at System.ComponentModel.Int32Converter.ConvertFromString (System.String
value, System.Globalization.NumberFormatInfo format) [0x00000]
at System.ComponentModel.BaseNumberConverter.ConvertFrom
(ITypeDescriptorContext context, System.Globalization.CultureInfo culture,
System.Object value) [0x00000] --- End of inner exception stack trace ---
at System.ComponentModel.BaseNumberConverter.ConvertFrom
(ITypeDescriptorContext context, System.Globalization.CultureInfo culture,
System.Object value) [0x00000]
at System.ComponentModel.TypeConverter.ConvertFromString
(ITypeDescriptorContext context, System.Globalization.CultureInfo culture,
System.String text) [0x00000]
at System.Drawing.RectangleConverter.ConvertFrom (ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, System.Object value)
[0x00000]
at System.ComponentModel.TypeConverter.ConvertFrom (System.Object o)
[0x00000]
at System.ComponentModel.TypeConverter.ConvertFromString (System.String text)
[0x00000]
at System.Configuration.ApplicationSettingsBase.CreateSettingsProperty
(System.Reflection.PropertyInfo prop,
System.Configuration.SettingsPropertyCollection properties,
System.Configuration.LocalFileSettingsProvider& local_provider) [0x00000]
at System.Configuration.ApplicationSettingsBase.get_Properties () [0x00000]
at System.Configuration.ApplicationSettingsBase..ctor () [0x00000]
at WhiteBoardMeeting.Properties.Settings..ctor () [0x00000]
at WhiteBoardMeeting.Properties.Settings..cctor () [0x00000] --- End of inner
exception stack trace ---
at WhiteBoardMeeting.Board..ctor () [0x00000]
Expected Results:
Assemply starts, read in Rectangle definition from properties, stores a value
in it, saves values and exits.
How often does this happen?
On every run.
Additional Information:
--
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