Bug 3797 - Addin engine tries to load disabled addin
Summary: Addin engine tries to load disabled addin
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Windows
: Low normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-03-07 17:30 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-11-23 20:36 UTC (History)
4 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 Mikayla Hutchinson [MSFT] 2012-03-07 17:30:54 UTC
Steps:
1) Open MD
2) Disable git addin
3) Open a solution

Error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Disabled add-ins can't be loaded.
   at Mono.Addins.AddinEngine.LoadAddin(IProgressStatus statusMonitor, String id, Boolean throwExceptions)
   at Mono.Addins.ExtensionNode.get_Addin()
   at Mono.Addins.TypeExtensionNode.get_Type()
   at Mono.Addins.TypeExtensionNode.CreateInstance()
   at Mono.Addins.InstanceExtensionNode.GetInstance()
   at Mono.Addins.InstanceExtensionNode.GetInstance(Type expectedType)
   at MonoDevelop.Ide.Codons.NodeBuilderCodon.get_NodeBuilder() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Codons\NodeBuilderCodon.cs:line 45
   at MonoDevelop.Ide.Codons.SolutionPadCodon.BuildChildren() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Codons\SolutionPadCodon.cs:line 65
   at MonoDevelop.Ide.Codons.SolutionPadCodon.CreatePad() in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Codons\SolutionPadCodon.cs:line 79
   at MonoDevelop.Ide.Codons.PadCodon.InitializePadContent(IPadWindow window) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Codons\PadCodon.cs:line 91
   at MonoDevelop.Ide.Gui.DefaultWorkbench.CreatePadContent(Boolean force, PadCodon padCodon, PadWindow window, DockItem item) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\DefaultWorkbench.cs:line 1237
   at MonoDevelop.Ide.Gui.DefaultWorkbench.<>c__DisplayClassc.<AddPad>b__8(Object , EventArgs ) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\DefaultWorkbench.cs:line 1294
   at MonoDevelop.Components.Docking.DockItem.SetupContent(Object ob, EventArgs args) in c:\Users\Michael\work\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Docking\DockItem.cs:line 154
   --- 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 System.Delegate.DynamicInvoke(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 Marius Ungureanu 2013-11-23 20:36:26 UTC
This is no longer an issue. Add-ins are loaded once MD is loaded.