Bug 126 - Error in solution pad when changing target framework
Summary: Error in solution pad when changing target framework
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: Trunk
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-07-31 15:23 UTC by Mikayla Hutchinson [MSFT]
Modified: 2012-01-05 13:38 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 Mikayla Hutchinson [MSFT] 2011-07-31 15:23:34 UTC
When changing the target fromwork from one that is not installed to one that's installed, the solution treeview throws an exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.TransactedNodeStore.RemoveNode(TreeNode node) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\TransactedTreeBuilder.cs:line 755
   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.TransactedNodeStore.RemoveNode(TreeNode node) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\TransactedTreeBuilder.cs:line 752
   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.TransactedNodeStore.RemoveNode(TreeNode node) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\TransactedTreeBuilder.cs:line 752
   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.TransactedTreeBuilder.ResetState() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\TransactedTreeBuilder.cs:line 470
   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.ResetState(ITreeNavigator nav) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\ExtensibleTreeView.cs:line 1616
   at MonoDevelop.Ide.Gui.Components.NodeState.RestoreState(ExtensibleTreeView pad, ITreeNavigator nav, NodeState es) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\NodeState.cs:line 223
   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.TransactedTreeBuilder.RestoreState(NodeState state) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\TransactedTreeBuilder.cs:line 166
   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.TransactedTreeBuilder.UpdateChildren() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\TransactedTreeBuilder.cs:line 455
   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.TransactedTreeBuilder.UpdateAll() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Components\TransactedTreeBuilder.cs:line 432
   at MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectNodeBuilder.OnProjectModified(Object sender, SolutionItemModifiedEventArgs args) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Pads.ProjectPad\ProjectNodeBuilder.cs:line 306
   at __SolutionItemModifiedEventHandler_DelegateFactory_14.Dispatch(Object )
   at MonoDevelop.Ide.Gui.GuiSyncContext.AsyncDispatch(StatefulMessageHandler cb, Object ob) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\GuiSyncContext.cs:line 47
   at __SolutionItemModifiedEventHandler_DelegateFactory_14.ProxyCall(Object , SolutionItemModifiedEventArgs )
   at MonoDevelop.Projects.SolutionItemModifiedEventHandler.Invoke(Object sender, SolutionItemModifiedEventArgs e)
   at MonoDevelop.Projects.SolutionItem.OnModified(SolutionItemModifiedEventArgs args) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Core\MonoDevelop.Projects\SolutionItem.cs:line 844
   at MonoDevelop.Projects.SolutionItem.NotifyModified(String hint) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Core\MonoDevelop.Projects\SolutionItem.cs:line 832
   at MonoDevelop.Projects.SolutionItem.set_BaseDirectory(FilePath value) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Core\MonoDevelop.Projects\SolutionItem.cs:line 238
   at MonoDevelop.Ide.Projects.OptionPanels.BaseDirectoryPanel.ApplyChanges() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Projects.OptionPanels\BaseDirectoryPanel.cs:line 72
   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.ApplyChanges() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Dialogs\OptionsDialog.cs:line 300
   at MonoDevelop.Ide.Gui.Dialogs.MultiConfigItemOptionsDialog.ApplyChanges() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Dialogs\MultiConfigItemOptionsDialog.cs:line 75
   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.OnButtonOkClicked(Object sender, EventArgs e) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Dialogs\OptionsDialog.cs:line 530
   --- 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 Jeffrey Stedfast 2012-01-05 13:38:46 UTC
Fixed in git master