[Mono-bugs] [Bug 532180] New: System.Configuration.ApplicationSettingsBase not implemented in v2.4.2.3

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 18 13:36:14 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=532180


           Summary: System.Configuration.ApplicationSettingsBase not
                    implemented in v2.4.2.3
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: novell at drealm.info
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.2)
Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)

Mono cannot run programs that use application settings as it fails to cast the
setting's value to the required data type:

-----Diagnostics--------
System.InvalidCastException: Cannot cast from source type to destination type.

  at S3PIDemoFE.Properties.Settings.get_BookmarkSize () [0x00000] in
D:\Development\MonoDevelop\S3PIDemoFE\Properties\Settings.Designer.cs:244 

----Source----------
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("4")]
        public short BookmarkSize {
            get {
                return ((short)(this["BookmarkSize"]));
            }
            set {
                this["BookmarkSize"] = value;
            }
        }


Reproducible: Always

Steps to Reproduce:
1. Run a program using application settings.

Actual Results:  
Program crashed (silently unless debugging)

Expected Results:  
Program should read settings and return correct values to application.

-- 
Configure bugmail: http://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