When trying to start Sonarr, the following exception occurs:
/opt/NzbDrone$ mono --debug NzbDrone.exe
Unhandled Exception:
System.TypeInitializationException: The type initializer for ‘NzbDrone.Console.ConsoleApp’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘NzbDrone.Common.Instrumentation.NzbDroneLogger’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘NLog.Common.InternalLogger’ threw an exception. —> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. —> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <system.net> (/opt/NzbDrone/NzbDrone.exe.config line 3)
at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) <0x40fba3b0 + 0x0004b> in :0
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) <0x40fb9bf0 + 0x00363> in :0
at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) <0x40fb9b90 + 0x00043> in :0
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) <0x40fb2b40 + 0x00223> in :0
at System.Configuration.Configuration.Load () <0x40fad470 + 0x0010b> in :0
at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) <0x40facd50 + 0x00227> in :0
at System.Configuration.Configuration…ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) <0x40fac310 + 0x00173> in :0
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) <0x40fabd70 + 0x0006f> in :0
at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) <0x40fab5d0 + 0x003e2> in :0
at System.Configuration.ClientConfigurationSystem.get_Configuration () <0x40fab430 + 0x00043> in :0
— End of inner exception stack trace —
at System.Configuration.ClientConfigurationSystem.get_Configuration () <0x40fab430 + 0x000df> in :0
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) <0x40fab3b0 + 0x00017> in :0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) <0x40fab2f0 + 0x0002e> in :0
at System.Configuration.ConfigurationManager.get_AppSettings () <0x40fab210 + 0x00017> in :0
at NLog.Common.InternalLogger.GetSettingString (System.String configName, System.String envName) <0x40fab110 + 0x00033> in :0
at NLog.Common.InternalLogger.GetSetting[T] (System.String configName, System.String envName, NLog.Common.T defaultValue) <0x40faafd0 + 0x00033> in :0
at NLog.Common.InternalLogger…cctor () <0x40faae90 + 0x00043> in :0
— End of inner exception stack trace —
at NLog.LogFactory.Dump (NLog.Config.LoggingConfiguration config) <0x40faae10 + 0x0000f> in :0
at NLog.LogFactory.set_Configuration (NLog.Config.LoggingConfiguration value) <0x40faa770 + 0x0021b> in :0
at NLog.LogManager.set_Configuration (NLog.Config.LoggingConfiguration value) <0x40fa7750 + 0x00027> in :0
at NzbDrone.Common.Instrumentation.NzbDroneLogger…cctor () [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Instrumentation\NzbDroneLogger.cs:19
— End of inner exception stack trace —
at NzbDrone.Console.ConsoleApp…cctor () [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Console\ConsoleApp.cs:12
— End of inner exception stack trace —
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for ‘NzbDrone.Console.ConsoleApp’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘NzbDrone.Common.Instrumentation.NzbDroneLogger’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘NLog.Common.InternalLogger’ threw an exception. —> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. —> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <system.net> (/opt/NzbDrone/NzbDrone.exe.config line 3)
at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) <0x40fba3b0 + 0x0004b> in :0
at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) <0x40fb9bf0 + 0x00363> in :0
at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) <0x40fb9b90 + 0x00043> in :0
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) <0x40fb2b40 + 0x00223> in :0
at System.Configuration.Configuration.Load () <0x40fad470 + 0x0010b> in :0
at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) <0x40facd50 + 0x00227> in :0
at System.Configuration.Configuration…ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) <0x40fac310 + 0x00173> in :0
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) <0x40fabd70 + 0x0006f> in :0
at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) <0x40fab5d0 + 0x003e2> in :0
at System.Configuration.ClientConfigurationSystem.get_Configuration () <0x40fab430 + 0x00043> in :0
— End of inner exception stack trace —
at System.Configuration.ClientConfigurationSystem.get_Configuration () <0x40fab430 + 0x000df> in :0
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) <0x40fab3b0 + 0x00017> in :0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) <0x40fab2f0 + 0x0002e> in :0
at System.Configuration.ConfigurationManager.get_AppSettings () <0x40fab210 + 0x00017> in :0
at NLog.Common.InternalLogger.GetSettingString (System.String configName, System.String envName) <0x40fab110 + 0x00033> in :0
at NLog.Common.InternalLogger.GetSetting[T] (System.String configName, System.String envName, NLog.Common.T defaultValue) <0x40faafd0 + 0x00033> in :0
at NLog.Common.InternalLogger…cctor () <0x40faae90 + 0x00043> in :0
— End of inner exception stack trace —
at NLog.LogFactory.Dump (NLog.Config.LoggingConfiguration config) <0x40faae10 + 0x0000f> in :0
at NLog.LogFactory.set_Configuration (NLog.Config.LoggingConfiguration value) <0x40faa770 + 0x0021b> in :0
at NLog.LogManager.set_Configuration (NLog.Config.LoggingConfiguration value) <0x40fa7750 + 0x00027> in :0
at NzbDrone.Common.Instrumentation.NzbDroneLogger…cctor () [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Instrumentation\NzbDroneLogger.cs:19
— End of inner exception stack trace —
at NzbDrone.Console.ConsoleApp…cctor () [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Console\ConsoleApp.cs:12
— End of inner exception stack trace —