Properties function in mono not longer working

Bug #475751 reported by Markus Schulz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mono (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: mono

I have a mono application that was developed in 2007 and it worked (7.10,8.04.8.10,9.04) until I updated to 9.10... now it looks like if there is a properties (I'm talking about the properties that are created automatically in Visual Studio) configuration file that is not reading all the properties in correctly (this whole file was generated in VS C# Express); in my case I have only issues with System.Drawing.Color objects. Here is an example that worked with earlier versions of Mono and also with .net:
        [global::System.Configuration.ApplicationScopedSettingAttribute()]

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]

        [global::System.Configuration.DefaultSettingValueAttribute("Lime")]

        public global::System.Drawing.Color cAllOK {

            get {

    return ((global::System.Drawing.Color)(this["cAllOK"]));

            }

        }
If I delete the properties directory (/home/markus/.local/share/QueueChecker.exe_StrongName_2jmj7l5rSw0yVb/vlWAYkK/YBwk=) it works again.

Revision history for this message
Markus Schulz (schulz-alpharesearch) wrote :

It looks like if I don't save the properties it will always load the default... but if I save it only saves to changed properties... the color is not changing and so it should load the default value... this is what happens in .net and in earlier versions of mono.

Here is the header form the file I'm talking about:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <section name="QueueChecker.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
  </configSections>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.