Problems trying to run NUnit
NUnit install seemed to go off without a hitch. But when i try having it open my dll i get the following exception:
---------------------------
Exception Details
---------------------------
System.IO.FileNotFoundException: File or assembly name nunit.framework, or one of its dependencies, was not found.
File name: "nunit.framework"
Server stack trace:
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
at System.AppDomain.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes)
at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes)
at NUnit.Core.TestDomain.MakeRemoteTestRunner(AppDomain runnerDomain)
at NUnit.Core.TestDomain.LoadAssembly(String assemblyFileName, String testFixture)
at NUnit.Util.NUnitProject.LoadTest(TestDomain testDomain, String testFixture)
at NUnit.Util.TestLoader.LoadTest()
=== Pre-bind state information ===
LOG: DisplayName = nunit.framework, Version=2.1.4.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77
(Fully-specified)
LOG: Appbase = C:\Development\cyrusn\Testing\Testing.Collections.Tests\bin\Debug
LOG: Initial PrivatePath = C:\Development\cyrusn\Testing\Testing.Collections.Tests\bin\Debug
Calling assembly : (Unknown).
===
LOG: Application configuration file does not exist.
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: nunit.framework, Version=2.1.4.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77
LOG: Attempting download of new URL .
LOG: Attempting download of new URL .
LOG: Attempting download of new URL .
LOG: Attempting download of new URL .
---------------------------
OK
---------------------------
Any help would be appreciated. Note: i can find nuint.framework in the GAC.
Comments
- Anonymous
May 16, 2004
NUnit won't be in the GAC. On my machine it is here
C:Program FilesNUnit V2.1bin
Add you reference to that directory.
Their web site should document this, as well as how to run NUnit GUI. - Anonymous
May 16, 2004
Interesting. It's definitely in my GAC :-) - Anonymous
May 16, 2004
Its not in the GAC on my machine. I always reference it from program files. - Anonymous
May 16, 2004
Very very weird then :-)
I have since moved to referencing it directly as that solves this issue. Unfortauntely, more issues have arisen that i don't know how to work around. - Anonymous
May 18, 2004
Have you tried csUnit? (http://www.csunit.org/) - Anonymous
September 21, 2005
this is the problem I think
http://www.dotnetjunkies.com/WebLog/richardslade/archive/2005/09/20/132843.aspx - Anonymous
September 21, 2005
this is the problem I think
http://www.dotnetjunkies.com/WebLog/richardslade/archive/2005/09/20/132843.aspx