Bug 21 - MonoDevelop 2.6 beta3 crashes when trying to access the Tools->Options->Mono for Android SDKs
Summary: MonoDevelop 2.6 beta3 crashes when trying to access the Tools->Options->Mono ...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: 2.6 Beta 2
Hardware: PC Windows
: Low normal
Target Milestone: ---
Assignee: shana@xamarin.com
URL:
Depends on:
Blocks:
 
Reported: 2011-07-19 01:28 UTC by Michael Isaac
Modified: 2016-07-13 14:42 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Michael Isaac 2011-07-19 01:28:15 UTC
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.

   at MonoDevelop.MonoDroid.Gui.MonoDroidSdkSettingsWidget.Build()

   at MonoDevelop.MonoDroid.Gui.MonoDroidSdkSettingsWidget..ctor()

   at MonoDevelop.MonoDroid.Gui.MonoDroidSdkSettings.CreatePanelWidget()

   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.CreatePageWidget(SectionPage page)

   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.ShowPage(OptionsDialogSection section)

   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.OnSelectionChanged(Object s, EventArgs a)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Delegate.DynamicInvokeImpl(Object[] args)

   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)

   at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)

   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
Comment 1 Luis 2011-07-29 11:24:59 UTC
I got the same error too. According to this link the issue might be the mono.posix.dll.  

http://stackoverflow.com/questions/6202820/mono-for-android-not-appearing-in-the-monodevelop-options

Although, if I try to follow the "fix" there, I end up at a dead end since the paths don't match up.

My Setup:
==============================================
Windows 7 home premium (64 bit)
MonoDevelop 2.6 beta 3
GTK 2.12.10
The latest Mono for Android 1.0.1.10323
JDK (32bit) 
android installer_r12-windows
==============================================
Comment 2 Admin 2011-08-23 11:05:24 UTC
This is fixed in Mono for Android addin v2.6.5.3, available from the add-in manager
Comment 3 xamarin-release-manager 2016-07-13 14:42:00 UTC
Fixed in version 6.1.0.5135 (cycle8)

Author: Eric Maupin
Commit: b49a08802291a0d21378d4fdf92a24b8ee911c91 (xamarin/ios-sim-sharp)
Included in Commit: 7aef028bb648590c60ad1c6d09183bb79c84d591 (mono/monodevelop)