Hello, this is my first post so let me introduce my-self: My name in the web is Lonami, I'm an experienced C# developer, also interested in game development, Android, Photoshop, etc.
I was trying to edit my Settings.settings file from SharpDevelop, and I can, but when I try to save it, it throws the next exception.
I expected it to save the settings, and it didn't. I've noticed that it removes "Settings" class name in the Settings.Designer.cs:
internal sealed partial class : global::System.Configuration.ApplicationSettingsBase {
Instead of
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
I've tried to add "Settings" by hand, but then, it sets to empty automatly.
Also, inside the class, it says:
private static void defaultInstance = ((void)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new void())));
And, I've also tried to make it say:
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
But it resets! Thank you all! Love SharpDevelop. Here's the exception:
SharpDevelop Version : 5.0.0.4755-c848dc28
.NET Version : 4.5.51641
OS Version : Microsoft Windows NT 6.3.9600.0
Current culture : Spanish (Spain, International Sort) (es-ES)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 215964kb
GC Heap Memory : 42720kb
Unhandled WPF exception
Exception thrown:
System.ArgumentException: '' no es un nombre expandido válido.
en System.Xml.Linq.XName.Get(String expandedName)
en ICSharpCode.SettingsEditor.SettingsViewContent.UpdateSettings(XElement settingsContainer, IEnumerable`1 entries)
en ICSharpCode.SettingsEditor.SettingsViewContent.UpdateAppConfig(XDocument appConfigDoc)
en ICSharpCode.SettingsEditor.SettingsViewContent.SaveInternal(OpenedFile file, Stream stream)
en ICSharpCode.SharpDevelop.Workbench.AbstractViewContentHandlingLoadErrors.Save(OpenedFile file, Stream stream)
en ICSharpCode.SharpDevelop.Workbench.OpenedFile.SaveCurrentViewToStream(Stream stream)
en ICSharpCode.SharpDevelop.Workbench.OpenedFile.SaveToDisk()
en ICSharpCode.SharpDevelop.Workbench.FileServiceOpenedFile.SaveToDisk()
en ICSharpCode.SharpDevelop.Workbench.OpenedFile.SaveToDisk(FileName newFileName)
en ICSharpCode.Core.FileUtility.ObservedSave(NamedFileOperationDelegate saveFileAs, FileName fileName, String message, FileErrorPolicy policy)
en ICSharpCode.Core.FileUtility.ObservedSave(NamedFileOperationDelegate saveFileAs, FileName fileName, FileErrorPolicy policy)
en ICSharpCode.SharpDevelop.Commands.SaveFile.Save(OpenedFile file)
en ICSharpCode.SharpDevelop.Commands.SaveAllFiles.SaveAll()
en ICSharpCode.SharpDevelop.Commands.SaveAllFiles.Run()
en ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
en ICSharpCode.Core.CommandWrapper.Execute(Object parameter)
en MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
en System.Windows.Controls.Primitives.ButtonBase.OnClick()
en System.Windows.Controls.Button.OnClick()
en ICSharpCode.Core.Presentation.ToolBarButton.OnClick()
en System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
en System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
en System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
en System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
en System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
en System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
en System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
en System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
en System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
en System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
en System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
en System.Windows.Input.InputManager.ProcessStagingArea()
en System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
en System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
en System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
en System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
11:13:17.673 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.IClipboard
11:13:18.806 [1] INFO - Open file D:\Projects\Projects\My Project\My Project\Properties\Settings.settings
11:13:18.806 [1] INFO - Loading addin Settings Editor
11:13:18.883 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: SettingsEditor.resources, Version=5.0.0.4755, Culture=es, PublicKeyToken=null
11:13:18.883 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: SettingsEditor.resources, Version=5.0.0.4755, Culture=es, PublicKeyToken=null
11:13:19.251 [1] DEBUG - ActiveContentChanged to ICSharpCode.SettingsEditor.SettingsViewContent
11:13:19.252 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Settings.settings]
11:13:19.252 [1] DEBUG - NavigationService
ActiveViewContent: Settings.settings
Subview: TabPageText
11:13:19.252 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.SettingsEditor.SettingsViewContent
11:13:37.925 [1] DEBUG - Save D:\Projects\Projects\My Project\My Project\Properties\Settings.settings
11:13:38.136 [21] DEBUG - Git: OverlayIconManager Thread started
11:13:38.211 [1] DEBUG - Save D:\Projects\Projects\My Project\My Project\app.config
11:13:38.238 [21] DEBUG - Git: OverlayIconManager Thread finished
11:13:38.320 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ArgumentException: '' no es un nombre expandido válido.
en System.Xml.Linq.XName.Get(String expandedName)
en ICSharpCode.SettingsEditor.SettingsViewContent.UpdateSettings(XElement settingsContainer, IEnumerable`1 entries)
en ICSharpCode.SettingsEditor.SettingsViewContent.UpdateAppConfig(XDocument appConfigDoc)
en ICSharpCode.SettingsEditor.SettingsViewContent.SaveInternal(OpenedFile file, Stream stream)
en ICSharpCode.SharpDevelop.Workbench.AbstractViewContentHandlingLoadErrors.Save(OpenedFile file, Stream stream)
en ICSharpCode.SharpDevelop.Workbench.OpenedFile.SaveCurrentViewToStream(Stream stream)
en ICSharpCode.SharpDevelop.Workbench.OpenedFile.SaveToDisk()
en ICSharpCode.SharpDevelop.Workbench.FileServiceOpenedFile.SaveToDisk()
en ICSharpCode.SharpDevelop.Workbench.OpenedFile.SaveToDisk(FileName newFileName)
en ICSharpCode.Core.FileUtility.ObservedSave(NamedFileOperationDelegate saveFileAs, FileName fileName, String message, FileErrorPolicy policy)
en ICSharpCode.Core.FileUtility.ObservedSave(NamedFileOperationDelegate saveFileAs, FileName fileName, FileErrorPolicy policy)
en ICSharpCode.SharpDevelop.Commands.SaveFile.Save(OpenedFile file)
en ICSharpCode.SharpDevelop.Commands.SaveAllFiles.SaveAll()
en ICSharpCode.SharpDevelop.Commands.SaveAllFiles.Run()
en ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
en ICSharpCode.Core.CommandWrapper.Execute(Object parameter)
en MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
en System.Windows.Controls.Primitives.ButtonBase.OnClick()
en System.Windows.Controls.Button.OnClick()
en ICSharpCode.Core.Presentation.ToolBarButton.OnClick()
en System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
en System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
en System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
en System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
en System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
en System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
en System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
en System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
en System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
en System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
en System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
en System.Windows.Input.InputManager.ProcessStagingArea()
en System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
en System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
en System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
en System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
11:13:38.952 [1] DEBUG - ParseInformationUpdated D:\Projects\Projects\My Project\My Project\Properties\Settings.Designer.cs (updated)
11:13:43.088 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent D:\Projects\Projects\My Project\My Project\MainF.cs]
11:13:43.088 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: MainF.cs]
11:13:43.088 [1] DEBUG - NavigationService
ActiveViewContent: MainF.cs
Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
11:13:43.088 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent D:\Projects\Projects\My Project\My Project\MainF.cs]
11:14:01.020 [1] DEBUG - ActiveContentChanged to ICSharpCode.SettingsEditor.SettingsViewContent
11:14:01.021 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Settings.settings*]
11:14:01.021 [1] DEBUG - NavigationService
ActiveViewContent: Settings.settings
Subview: TabPageText
11:14:01.021 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.SettingsEditor.SettingsViewContent
11:14:02.449 [1] DEBUG - Save D:\Projects\Projects\My Project\My Project\app.config
11:14:02.450 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ArgumentException: '' no es un nombre expandido válido.
en System.Xml.Linq.XName.Get(String expandedName)
en ICSharpCode.SettingsEditor.SettingsViewContent.UpdateSettings(XElement settingsContainer, IEnumerable`1 entries)
en ICSharpCode.SettingsEditor.SettingsViewContent.UpdateAppConfig(XDocument appConfigDoc)
en ICSharpCode.SettingsEditor.SettingsViewContent.SaveInternal(OpenedFile file, Stream stream)
en ICSharpCode.SharpDevelop.Workbench.AbstractViewContentHandlingLoadErrors.Save(OpenedFile file, Stream stream)
en ICSharpCode.SharpDevelop.Workbench.OpenedFile.SaveCurrentViewToStream(Stream stream)
en ICSharpCode.SharpDevelop.Workbench.OpenedFile.SaveToDisk()
en ICSharpCode.SharpDevelop.Workbench.FileServiceOpenedFile.SaveToDisk()
en ICSharpCode.SharpDevelop.Workbench.OpenedFile.SaveToDisk(FileName newFileName)
en ICSharpCode.Core.FileUtility.ObservedSave(NamedFileOperationDelegate saveFileAs, FileName fileName, String message, FileErrorPolicy policy)
en ICSharpCode.Core.FileUtility.ObservedSave(NamedFileOperationDelegate saveFileAs, FileName fileName, FileErrorPolicy policy)
en ICSharpCode.SharpDevelop.Commands.SaveFile.Save(OpenedFile file)
en ICSharpCode.SharpDevelop.Commands.SaveAllFiles.SaveAll()
en ICSharpCode.SharpDevelop.Commands.SaveAllFiles.Run()
en ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
en ICSharpCode.Core.CommandWrapper.Execute(Object parameter)
en MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
en System.Windows.Controls.Primitives.ButtonBase.OnClick()
en System.Windows.Controls.Button.OnClick()
en ICSharpCode.Core.Presentation.ToolBarButton.OnClick()
en System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
en System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
en System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
en System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
en System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
en System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
en System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
en System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
en System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
en System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
en System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
en System.Windows.Input.InputManager.ProcessStagingArea()
en System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
en System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
en System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
en System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution D:\Projects\Projects\My Project\My Project.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: My Project]
Workbench.ActiveContent: ICSharpCode.SettingsEditor.SettingsViewContent
Thanks again!