Bug 10746 - Upon installing Mono 3.0.5, '.Net runtimes' in prefs breaks
Summary: Upon installing Mono 3.0.5, '.Net runtimes' in prefs breaks
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-02-27 17:38 UTC by Robert Jeppesen
Modified: 2013-02-28 11:35 UTC (History)
2 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 Robert Jeppesen 2013-02-27 17:38:26 UTC
After installing Mono 3.0.5, Xamarin Studio can not display the prefs for Projects / .Net runtimes. 
Frameworks / current is pointing to 3.0.5. When navigating to that tab, an exception is reported: 

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Ide.Gui.OptionPanels.MonoRuntimePanelWidget..ctor () [0x00022] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs:65 
  at MonoDevelop.Ide.Gui.OptionPanels.MonoRuntimePanel.CreatePanelWidget () [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs:43 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.CreatePageWidget (MonoDevelop.Ide.Gui.Dialogs.SectionPage page) [0x00030] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:586 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.ShowPage (MonoDevelop.Ide.Extensions.OptionsDialogSection section) [0x00132] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:478 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.OnSelectionChanged (System.Object s, System.EventArgs a) [0x0002a] in /Users/builder/data/lanes/monodevelop_private-lion-bigsplash/a8219130/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs:431 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00064] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.5/_build/mono-3.0.5.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:231 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00079] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.5/_build/mono-3.0.5.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:239 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.5/_build/mono-3.0.5.git/mcs/class/corlib/System.Reflection/MethodBase.cs:101 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000d5] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.5/_build/mono-3.0.5.git/mcs/class/corlib/System/Delegate.cs:424 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.5/_build/mono-3.0.5.git/mcs/class/corlib/System/MulticastDelegate.cs:72 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.5/_build/mono-3.0.5.git/mcs/class/corlib/System/Delegate.cs:398 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
Comment 1 Mikayla Hutchinson [MSFT] 2013-02-28 00:14:28 UTC
Pretty sure this is a bug in Mono 3.0.5. Can you try installing Mono 3.0.6 and deleting Mono 3.0.5.?

http://origin-download.mono-project.com/archive/3.0.6/macos-10-x86/MonoFramework-MRE-3.0.6.macos10.xamarin.x86.dmg
Comment 2 Robert Jeppesen 2013-02-28 01:25:26 UTC
I'll try it when I get home. Do I just delete the /Versions/3.0.5 folder?
Comment 3 Mikayla Hutchinson [MSFT] 2013-02-28 01:39:04 UTC
Yup.
Comment 4 Robert Jeppesen 2013-02-28 11:35:37 UTC
You're right, it is a bug in 3.0.5. 3.0.6 works fine.