paiprashanth / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

Could not load type 'System.Configuration.Internal.ConfigurationManagerInternal #899

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using mission planner with mono on Ubuntu Quantal and it's been working 
fine for weeks, but I just upgraded from 1.2.36 to 1.2.38 and mission planner 
won't start. Instead I get the following output:

<code>
Unhandled Exception: System.TypeInitializationException: An exception was 
thrown by the type initializer for System.Windows.Forms.XplatUI ---> 
System.TypeLoadException: Could not load type 
'System.Configuration.Internal.ConfigurationManagerInternal, 
System.Configuration, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a'.
  at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
  at System.Type.GetType (System.String typeName, Boolean throwOnError) [0x00000] in <filename unknown>:0 
  at System.Configuration.TypeUtil.CreateInstanceWithReflectionPermission (System.String typeString) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManagerInternalFactory.get_Instance () [0x00000] in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.Initialize () [0x00000] in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.get_Sources () [0x00000] in <filename unknown>:0 
  at System.Diagnostics.TraceSource.Initialize () [0x00000] in <filename unknown>:0 
  at System.Diagnostics.TraceSource.get_Switch () [0x00000] in <filename unknown>:0 
  at System.Net.Logging.InitializeLogging () [0x00000] in <filename unknown>:0 
  at System.Net.Logging.get_On () [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0 
  at ArdupilotMega.Program.Main () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An 
exception was thrown by the type initializer for System.Windows.Forms.XplatUI 
---> System.TypeLoadException: Could not load type 
'System.Configuration.Internal.ConfigurationManagerInternal, 
System.Configuration, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a'.
  at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
  at System.Type.GetType (System.String typeName, Boolean throwOnError) [0x00000] in <filename unknown>:0 
  at System.Configuration.TypeUtil.CreateInstanceWithReflectionPermission (System.String typeString) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManagerInternalFactory.get_Instance () [0x00000] in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.Initialize () [0x00000] in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.get_Sources () [0x00000] in <filename unknown>:0 
  at System.Diagnostics.TraceSource.Initialize () [0x00000] in <filename unknown>:0 
  at System.Diagnostics.TraceSource.get_Switch () [0x00000] in <filename unknown>:0 
  at System.Net.Logging.InitializeLogging () [0x00000] in <filename unknown>:0 
  at System.Net.Logging.get_On () [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] in <filename unknown>:0 
  at ArdupilotMega.Program.Main () [0x00000] in <filename unknown>:0 
</code>

Original issue reported on code.google.com by jele...@gmail.com on 1 Apr 2013 at 1:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
1.2.40 still doesn't run, but with a different looking error (sorry, not sure 
if this is a different issue though):

Unhandled Exception: System.TypeLoadException: Could not load type 
'ArdupilotMega.Program' from assembly 'ArdupilotMegaPlanner10, 
Version=1.1.4842.12967, Culture=neutral, PublicKeyToken=null'.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load 
type 'ArdupilotMega.Program' from assembly 'ArdupilotMegaPlanner10, 
Version=1.1.4842.12967, Culture=neutral, PublicKeyToken=null'.

Original comment by jele...@gmail.com on 8 Apr 2013 at 10:45

GoogleCodeExporter commented 8 years ago
I am wondering if you found any resolution for the above error because I am 
getting the exact error.  

Original comment by hduc...@gmail.com on 30 Oct 2013 at 7:54