https://bugzilla.novell.com/show_bug.cgi?id=418834
Summary: ConfigurationErrorsException in app.config parse Product: Mono: Class Libraries Version: 2.0 Platform: x86 OS/Version: Windows Vista Status: NEW Severity: Normal Priority: P5 - None Component: Windows.Forms AssignedTo: mono-bugs@lists.ximian.com ReportedBy: [EMAIL PROTECTED] QAContact: mono-bugs@lists.ximian.com Found By: --- To reproduce 1. Create applicaton using VCSE2008 SP1 using code and app.config contents below 2. Run application in Vista. Observed: Unhandled Exception: System.Configuration.ConfigurationErrorsException: Exception of type 'System.Configuration.ConfigurationErrorsException' was thrown. at System.Configuration.CustomizableFileSettingsProvider.LoadPropertyValue (System.Configuration.SettingsPropertyCollection collection, System.Configuration.SettingElement element, Boolean allowOverwrite) [0x00000] at System.Configuration.CustomizableFileSettingsProvider.LoadProperies (System.Configuration.ExeConfigurationFileMap exeMap, System.Configuration.SettingsPropertyCollection collection, ConfigurationUserLevel level, System.String sectionGroupName, Boolean allowOverwrite) [0x00000] at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection collection) [0x00000] at System.Configuration.LocalFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection properties) [0x00000] at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider (System.Configuration.SettingsProvider provider) [0x00000] at System.Configuration.ApplicationSettingsBase.GetPropertyValue (System.String propertyName) [0x00000] at System.Configuration.ApplicationSettingsBase.get_Item (System.String propertyName) [0x00000] at MyApplication.UI.Properties.Settings.get_Server () [0x00000] at MyApp.UI.AppMainEntry.Main () [0x00000] **** program.cs: using System.Drawing; using System.Windows.Forms; namespace MyApp.UI { public class AppMainEntry { public static void Main() { var x = global::MyApplication.UI.Properties.Settings.Default.Server; System.Windows.Forms.MessageBox.Show("peale"); } } } namespace MyApplication.UI.Properties { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); public static Settings Default { get { return defaultInstance; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("localhost")] public string Server { get { return ((string)(this["Server"])); } set { this["Server"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute(@" <FormData xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema""> <Location> <X>0</X> <Y>0</Y> </Location> <ClientSize> <Width>1008</Width> <Height>703</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>0</SplitterDistancePercent> </FormData> ")] public global::MyApp.Business.FormData Mainform { get { return ((global::MyApp.Business.FormData)(this["Mainform"])); } set { this["Mainform"] = value; } } } } namespace MyApp.Business { public sealed class FormData { public Point Location; public Size ClientSize; public FormWindowState WindowState; public int SplitterDistancePercent; FormData() { } } } **** app.config: <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <section name="Myaoo.Windows.Forms.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/> <section name="Myaoo.UI.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/> </sectionGroup> </configSections> <userSettings> <Myaoo.Windows.Forms.Properties.Settings> <setting name="AutoLogin" serializeAs="String"> <value>False</value> </setting> <setting name="Server" serializeAs="String"> <value>localhost</value> </setting> <setting name="User" serializeAs="String"> <value>admin</value> </setting> <setting name="LastSchema" serializeAs="String"> <value>firma1</value> </setting> <setting name="Mainform" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>0</X> <Y>0</Y> </Location> <ClientSize> <Width>1008</Width> <Height>703</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>0</SplitterDistancePercent> </FormData> </value> </setting> <setting name="DokG" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>134</X> <Y>7</Y> </Location> <ClientSize> <Width>664</Width> <Height>551</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>0</SplitterDistancePercent> </FormData> </value> </setting> <setting name="ToodeL" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>13</X> <Y>7</Y> </Location> <ClientSize> <Width>809</Width> <Height>500</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>81</SplitterDistancePercent> </FormData> </value> </setting> <setting name="RidG" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>35</X> <Y>86</Y> </Location> <ClientSize> <Width>813</Width> <Height>338</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>0</SplitterDistancePercent> </FormData> </value> </setting> <setting name="Klient" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>13</X> <Y>6</Y> </Location> <ClientSize> <Width>947</Width> <Height>541</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>84</SplitterDistancePercent> </FormData> </value> </setting> <setting name="InfoBoxFont" serializeAs="String"> <value>Arial, 8.25pt</value> </setting> <setting name="InfoBoxZoom" serializeAs="String"> <value>1</value> </setting> </Myaoo.Windows.Forms.Properties.Settings> <Myaoo.UI.Properties.Settings> <setting name="AutoLogin" serializeAs="String"> <value>False</value> </setting> <setting name="Server" serializeAs="String"> <value>localhost</value> </setting> <setting name="User" serializeAs="String"> <value>admin</value> </setting> <setting name="LastSchema" serializeAs="String"> <value>firma1</value> </setting> <setting name="Mainform" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>0</X> <Y>0</Y> </Location> <ClientSize> <Width>1008</Width> <Height>703</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>0</SplitterDistancePercent> </FormData> </value> </setting> <setting name="DokG" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>134</X> <Y>7</Y> </Location> <ClientSize> <Width>664</Width> <Height>551</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>0</SplitterDistancePercent> </FormData> </value> </setting> <setting name="ToodeL" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>13</X> <Y>7</Y> </Location> <ClientSize> <Width>809</Width> <Height>500</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>81</SplitterDistancePercent> </FormData> </value> </setting> <setting name="RidG" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>35</X> <Y>86</Y> </Location> <ClientSize> <Width>813</Width> <Height>338</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>0</SplitterDistancePercent> </FormData> </value> </setting> <setting name="Klient" serializeAs="Xml"> <value> <FormData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Location> <X>13</X> <Y>6</Y> </Location> <ClientSize> <Width>947</Width> <Height>541</Height> </ClientSize> <WindowState>Normal</WindowState> <SplitterDistancePercent>84</SplitterDistancePercent> </FormData> </value> </setting> <setting name="InfoBoxFont" serializeAs="String"> <value>Arial, 8.25pt</value> </setting> <setting name="InfoBoxZoom" serializeAs="String"> <value>1</value> </setting> <setting name="LastFormName" serializeAs="String"> <value/> </setting> </Myaoo.UI.Properties.Settings> </userSettings> <startup> <supportedRuntime version="v2.0.50727"/> </startup> </configuration> -- 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 - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs