Bug 10276 - Error while executing command: Run Test (InvalidCastException)
Summary: Error while executing command: Run Test (InvalidCastException)
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NUnit ()
Version: 3.1.x
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-02-13 09:17 UTC by MoonStorm
Modified: 2013-02-13 09:19 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 NOT_REPRODUCIBLE

Description MoonStorm 2013-02-13 09:17:39 UTC
Got this since I've updated MonoDevelop to 3.1 on an OpenSuse 12.2 machine, attempting to run any tests in the IDE:

Error while executing command: Run Test
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Cannot cast from source type to destination type.
  at MonoDevelop.Ide.Gui.Pads.HelpTree.PopulateNode (TreeIter parent) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Pads.HelpTree..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0 
  at Mono.Addins.RuntimeAddin.CreateInstance (System.String typeName, Boolean throwIfNotFound) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Codons.PadCodon.CreatePad () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Codons.PadCodon.InitializePadContent (IPadWindow window) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.PadWindow.CreateContent () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.PadWindow.get_Content () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Pad.get_Content () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Workbench.GetPad[TestPad] () [0x00000] in <filename unknown>:0 
  at MonoDevelop.NUnit.TestPad.RunTest (ITreeNavigator nav, IExecutionHandler mode) [0x00000] in <filename unknown>:0 
  at MonoDevelop.NUnit.TestPad.RunSelectedTest (IExecutionHandler mode) [0x00000] in <filename unknown>:0 
  at MonoDevelop.NUnit.TestPad.OnRunTest () [0x00000] in <filename unknown>:0 
  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) [0x00000] in <filename unknown>:0 
  --- 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) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandHandlerInfo.Run (System.Object cmdTarget, MonoDevelop.Components.Commands.Command cmd) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandManager+<DispatchCommand>c__AnonStorey72.<>m__BB () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2013-02-13 09:19:18 UTC
Works with our internal version - we'll release soon.