Bug 12173 - Exception loading Apple SDK preferences pane
Summary: Exception loading Apple SDK preferences pane
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: 4.0.9 (from master)
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-05-08 19:11 UTC by Alex Corrado [MSFT]
Modified: 2013-06-24 16:18 UTC (History)
1 user (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 Alex Corrado [MSFT] 2013-05-08 19:11:58 UTC
If you set some dummy value (in my case, "foobar") to the Apple SDK path, you won't be able to reload the preferences pane to change it back. Here's the exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: UNC paths should be of the form \\server\share.
  at System.IO.Path.InsecureGetFullPath (System.String path) [0x00224] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-encrypted/build-root/mono-3.0.8/mcs/class/corlib/System.IO/Path.cs:383 
  at System.IO.Path.GetFullPath (System.String path) [0x00000] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-encrypted/build-root/mono-3.0.8/mcs/class/corlib/System.IO/Path.cs:280 
  at MonoDevelop.Core.FilePath.get_FullPath () [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/a9fca54f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FilePath.cs:73 
  at MonoDevelop.Ide.Gui.OptionPanels.SdkLocationWidget.CleanPath (FilePath path) [0x00013] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/a9fca54f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/SdkLocationPanel.cs:159 
  at MonoDevelop.Ide.Gui.OptionPanels.SdkLocationWidget.Validate () [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/a9fca54f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/SdkLocationPanel.cs:130 
  at MonoDevelop.Ide.Gui.OptionPanels.SdkLocationWidget..ctor (MonoDevelop.Ide.Gui.OptionPanels.SdkLocationPanel panel) [0x00161] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/a9fca54f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/SdkLocationPanel.cs:124 
  at MonoDevelop.Ide.Gui.OptionPanels.SdkLocationPanel.CreatePanelWidget () [0x00000] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/a9fca54f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/SdkLocationPanel.cs:44 
  at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.CreatePageWidget (MonoDevelop.Ide.Gui.Dialogs.SectionPage page) [0x00030] in /Users/builder/data/lanes/monodevelop_private-lion-splash2/a9fca54f/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-splash2/a9fca54f/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-splash2/a9fca54f/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) [0x00054] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-encrypted/build-root/mono-3.0.8/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
  --- 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) [0x00069] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-encrypted/build-root/mono-3.0.8/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-encrypted/build-root/mono-3.0.8/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000d5] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-encrypted/build-root/mono-3.0.8/mcs/class/corlib/System/Delegate.cs:424 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-encrypted/build-root/mono-3.0.8/mcs/class/corlib/System/MulticastDelegate.cs:72 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-encrypted/build-root/mono-3.0.8/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 Jeffrey Stedfast 2013-05-09 14:47:36 UTC
should be fixed in git master now
Comment 2 PJ 2013-06-24 16:18:37 UTC
This bug was marked as fixed for Xamarin Studio 4.0.9, which is currently in the beta channel. Try it out!