Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
I am trying to run unit tests on a project, but the tests will not load. Every test has a "Load failed" message. This is the stack trace printed when I attempt to run a single test.
ERROR [2011-10-08 16:28:02Z]: System.NullReferenceException: Object reference not set to an instance of an object
Server stack trace:
at NUnit.Util.DomainManager.CreateDomain (NUnit.Core.TestPackage package) [0x00000] in <filename unknown>:0
at MonoDevelop.NUnit.External.ExternalTestRunner.GetRunner (System.String assemblyPath) [0x00000] in <filename unknown>:0
at MonoDevelop.NUnit.External.ExternalTestRunner.Run (IRemoteEventListener listener, ITestFilter filter, System.String path, System.String suiteName, System.Collections.Generic.List`1 supportAssemblies) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object,object&)
at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x00000] in <filename unknown>:0
Exception rethrown at :
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object& out_args) [0x00000] in <filename unknown>:0
Try 2.8 It contains some bugfixes in the unit test addin.
(btw. which mono version/distro do you use?)
Reopen, if it happens again.
Thank you for pointing me in that direction. I am running Ubuntu 11.10, which comes with Monodevelop 2.6 by default. I had to build from source since there's no Monodevelop 2.8 package available for Oneiric, but that was no trouble at all. Upgrading to Monodevelop 2.8 nicely resolves the problems I mentioned in the original bug report.