Debug.WriteLine() causes "Error Initializing the configuration system"

My first F7 Feather project… hence my first naïve questions…

Q1) If I use Debug.WriteLine(“…”), I get the error shown below. Debug.Assert(true) does the same thing. Do I need to configure something?
Q2) Why is “Set next statement” on the context menu disabled? I often use that when debugging.
Thanks for your help!


App Error in App Run: Error Initializing the configuration system.
System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system.
at System.Configuration.ClientConfigurationSystem.get_Configuration () <0xc143e3b0 + 0x00042> in <65bb65e201494ea1a4c08c8b727f1bf7>:0
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) <0xc143e080 + 0x00004> in <65bb65e201494ea1a4c08c8b727f1bf7>:0
at System.Configuration.ConfigurationMa
ager.GetSection (System.String sectionName) <0xc143de70 + 0x00010> in <65bb65e201494ea1a4c08c8b727f1bf7>:0
at System.Configuration.PrivilegedConfigurationManager.GetSection (System.String sectionName) [0x00000] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/System/misc/PrivilegedConfigurationManager.cs:24
at System.Diagnostics.DiagnosticsConfiguration.GetConfig
ection () [0x00000] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/System/compmod/system/diagnostics/DiagnosticsConfiguration.cs:171
at System.Diagnostics.DiagnosticsConfiguration.Initialize () [0x0002a] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/System/compmod/system/diagnostics/DiagnosticsConfiguration.cs:209
at System.Diagnostics.Diagnostic
Configuration.get_IndentSize () [0x00000] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/System/compmod/system/diagnostics/DiagnosticsConfiguration.cs:104
at System.Diagnostics.TraceInternal.InitializeSettings () [0x0004e] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/System/compmod/system/diagnostics/TraceInternal.cs:299
at System.Diagnostics.Tr
ceInternal.get_UseGlobalLock () [0x00000] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/System/compmod/system/diagnostics/TraceInternal.cs:95
at System.Diagnostics.TraceInternal.WriteLine (System.String message) [0x00000] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/System/compmod/system/diagnostics/TraceInternal.cs:475
at System.Diagnostics.De
ug.WriteLine (System.String message) [0x00000] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/System/compmod/system/diagnostics/Debug.cs:197
at WiFi_Basics.MeadowApp.Run () [0x000a1] in C:\Users\matth\Documents\Visual Studio 2022\Meadow\WiFi_Basics\CS\MeadowApp.cs:51
at Meadow.MeadowOS.Start (System.String[] args) <0xc0be2758 + 0x00212> in <b233fa841cb445079c08
536686ee21c>:0
Inner System.MissingMethodException: Default constructor not found for type System.Configuration.ExeConfigurationHost
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00066] in /root/myagent/_work/3/s/monobcl/mcs/class/corlib/ReferenceSources/RuntimeType.cs:177
at System.RuntimeType.CreateInstanceSlow (Syst
m.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in /root/myagent/_work/3/s/monobcl/mcs/class/corlib/ReferenceSources/RuntimeType.cs:155
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Thr
ading.StackCrawlMark& stackMark) [0x00027] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/mscorlib/system/rttype.cs:5770
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00039] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/mscorlib/system/activator.cs:206
at System.Activator.CreateI
stance (System.Type type, System.Boolean nonPublic) [0x00000] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/mscorlib/system/activator.cs:190
at System.Activator.CreateInstance (System.Type type) [0x00000] in /root/myagent/_work/3/s/monobcl/mcs/class/referencesource/mscorlib/system/activator.cs:134
at System.Configuration.InternalConfigurationSystem.Init (Syste
.Type typeConfigHost, System.Object[] hostInitParams) <0xc14435c0 + 0x00010> in <65bb65e201494ea1a4c08c8b727f1bf7>:0
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) <0xc14433b8 + 0x00016> in <65bb65e201494ea1a4c08c8b727f1bf7>:0
at System.Configuration.ConfigurationManager.OpenExeConfigurati
nInternal (System.Configuration.ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) <0xc1442878 + 0x001bc> in <65bb65e201494ea1a4c08c8b727f1bf7>:0
at System.Configuration.ClientConfigurationSystem.get_Configuration () <0xc143e3b0 + 0x00020> in <65bb65e201494ea1a4c08c8b727f1bf7>:0