Skip to content

Instantly share code, notes, and snippets.

@ArsenShnurkov
Created March 10, 2015 11:13
Show Gist options
  • Save ArsenShnurkov/d3c29df6d79c15171ea6 to your computer and use it in GitHub Desktop.
Save ArsenShnurkov/d3c29df6d79c15171ea6 to your computer and use it in GitHub Desktop.
GitExtensions fails at startup
Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for GitCommands.AppSettings ---> System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 104, position 9.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2496
at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String arg) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2471
at System.Xml.XmlTextReaderImpl.ParsePI (System.Text.StringBuilder piInDtdStringBuilder) [0x00073] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:5651
at System.Xml.XmlTextReaderImpl.ParsePI () [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:5634
at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x00059] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:3758
at System.Xml.XmlTextReaderImpl.Read () [0x00090] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:1159
at System.Xml.XmlTextReader.Read () [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReader.cs:209
at System.Xml.XmlWriter.WriteNode (System.Xml.XmlReader reader, Boolean defattr) [0x001ba] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlWriter.cs:425
at System.Xml.XmlReader.ReadOuterXml () [0x00080] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlReader.cs:1162
at System.Configuration.SectionInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x000dc] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:186
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x0014b] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:328
at System.Configuration.SectionGroupInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x00018] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:281
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x0014b] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:328
at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00007] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:273
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x000ec] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/Configuration.cs:568
at System.Configuration.Configuration.Load () [0x00052] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/Configuration.cs:528
at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00065] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/Configuration.cs:137
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x0005c] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/Configuration.cs:96
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x0000e] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/InternalConfigurationFactory.cs:41
at System.Configuration.ConfigurationManager.OpenMappedExeConfiguration (System.Configuration.ExeConfigurationFileMap fileMap, ConfigurationUserLevel userLevel) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:135
at System.Configuration.CustomizableFileSettingsProvider.LoadProperties (System.Configuration.ExeConfigurationFileMap exeMap, System.Configuration.SettingsPropertyCollection collection, ConfigurationUserLevel level, System.String sectionGroupName, Boolean allowOverwrite, System.String groupName) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:733
at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection collection) [0x0006a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:779
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection properties) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/LocalFileSettingsProvider.cs:62
at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider (System.Configuration.SettingsProvider provider) [0x00066] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:186
at System.Configuration.ApplicationSettingsBase.GetPropertyValue (System.String propertyName) [0x00042] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:213
at System.Configuration.ApplicationSettingsBase.get_Item (System.String propertyName) [0x00017] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:223
at GitCommands.Properties.Settings.get_IsPortable () [0x00007] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitCommands/Properties/Settings.Designer.cs:31
at GitCommands.AppSettings.IsPortable () [0x00006] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitCommands/Settings/AppSettings.cs:1096
at GitCommands.AppSettings.<AppSettings>m__0 () [0x00001] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitCommands/Settings/AppSettings.cs:41
at System.Lazy`1[System.String].CreateValue () [0x00075] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/mscorlib/system/Lazy.cs:440
--- End of inner exception stack trace ---
at GitUI.Lemmings.GetPictureBoxImage (DateTime currentDate) [0x00001] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitUI/Lemmings.cs:11
at GitUI.FormSplash..ctor () [0x0004c] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitUI/FormSplash.cs:50
at (wrapper remoting-invoke-with-check) GitUI.FormSplash:.ctor ()
at GitUI.FormSplash.ShowSplash () [0x00001] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitUI/FormSplash.cs:22
at GitExtensions.Program.Main () [0x000ba] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitExtensions/Program.cs:56
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for GitCommands.AppSettings ---> System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 104, position 9.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2496
at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String arg) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:2471
at System.Xml.XmlTextReaderImpl.ParsePI (System.Text.StringBuilder piInDtdStringBuilder) [0x00073] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:5651
at System.Xml.XmlTextReaderImpl.ParsePI () [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:5634
at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x00059] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:3758
at System.Xml.XmlTextReaderImpl.Read () [0x00090] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReaderImpl.cs:1159
at System.Xml.XmlTextReader.Read () [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlTextReader.cs:209
at System.Xml.XmlWriter.WriteNode (System.Xml.XmlReader reader, Boolean defattr) [0x001ba] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlWriter.cs:425
at System.Xml.XmlReader.ReadOuterXml () [0x00080] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/System.Xml/System/Xml/Core/XmlReader.cs:1162
at System.Configuration.SectionInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x000dc] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:186
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x0014b] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:328
at System.Configuration.SectionGroupInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x00018] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:281
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x0014b] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:328
at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00007] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:273
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x000ec] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/Configuration.cs:568
at System.Configuration.Configuration.Load () [0x00052] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/Configuration.cs:528
at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00065] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/Configuration.cs:137
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x0005c] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/Configuration.cs:96
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x0000e] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/InternalConfigurationFactory.cs:41
at System.Configuration.ConfigurationManager.OpenMappedExeConfiguration (System.Configuration.ExeConfigurationFileMap fileMap, ConfigurationUserLevel userLevel) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs:135
at System.Configuration.CustomizableFileSettingsProvider.LoadProperties (System.Configuration.ExeConfigurationFileMap exeMap, System.Configuration.SettingsPropertyCollection collection, ConfigurationUserLevel level, System.String sectionGroupName, Boolean allowOverwrite, System.String groupName) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:733
at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection collection) [0x0006a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs:779
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection properties) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/LocalFileSettingsProvider.cs:62
at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider (System.Configuration.SettingsProvider provider) [0x00066] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:186
at System.Configuration.ApplicationSettingsBase.GetPropertyValue (System.String propertyName) [0x00042] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:213
at System.Configuration.ApplicationSettingsBase.get_Item (System.String propertyName) [0x00017] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.Configuration/ApplicationSettingsBase.cs:223
at GitCommands.Properties.Settings.get_IsPortable () [0x00007] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitCommands/Properties/Settings.Designer.cs:31
at GitCommands.AppSettings.IsPortable () [0x00006] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitCommands/Settings/AppSettings.cs:1096
at GitCommands.AppSettings.<AppSettings>m__0 () [0x00001] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitCommands/Settings/AppSettings.cs:41
at System.Lazy`1[System.String].CreateValue () [0x00075] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/mscorlib/system/Lazy.cs:440
--- End of inner exception stack trace ---
at GitUI.Lemmings.GetPictureBoxImage (DateTime currentDate) [0x00001] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitUI/Lemmings.cs:11
at GitUI.FormSplash..ctor () [0x0004c] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitUI/FormSplash.cs:50
at (wrapper remoting-invoke-with-check) GitUI.FormSplash:.ctor ()
at GitUI.FormSplash.ShowSplash () [0x00001] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitUI/FormSplash.cs:22
at GitExtensions.Program.Main () [0x000ba] in /var/calculate/remote/distfiles/egit-src/gitextensions/GitExtensions/Program.cs:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment