Noob Help

65 views
Skip to first unread message

Brian

unread,
Apr 12, 2006, 7:12:01 PM4/12/06
to TestDriven.NET Users
I'm trying to run TestDriven.NET in a 2.0 project, using NUnit 2.2.7.
Whenever I run it, I get the message below. I'm sure it's something
dumb, but I don't know why it is looking for 2.2.0?

failed: Could not load file or assembly 'nunit.framework,
Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or
one of its dependencies. The located assembly's manifest definition
does not match the assembly reference. (Exception from HRESULT:
0x80131040)
System.IO.FileLoadException: Could not load file or assembly
'nunit.framework, Version=2.2.0.0, Culture=neutral,
PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)
File name: 'nunit.framework, Version=2.2.0.0, Culture=neutral,
PublicKeyToken=96d09a1eb7f44a77'
at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle*
typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs,
Int32 methodInstCount)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken,
RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[]
methodInstantiationContext)
at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[]
genericTypeArguments, Type[] genericMethodArguments)
at
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord
caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module
decoratedModule, MetadataToken decoratedToken, RuntimeType
attributeFilterType, Boolean mustBeInheritable, Object[] attributes,
IList derivedAttributes, RuntimeType& attributeType,
RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean&
isVarArg)
at System.Reflection.CustomAttribute.GetCustomAttributes(Module
decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount,
RuntimeType attributeFilterType, Boolean mustBeInheritable, IList
derivedAttributes)
at
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeMethodInfo
method, RuntimeType caType, Boolean inherit)
at System.Reflection.RuntimeMethodInfo.GetCustomAttributes(Boolean
inherit)
at NUnit.Core.Reflect.HasAttribute(MemberInfo member, String attrName,
Boolean inherit)
at NUnit.Core.Reflect.GetMethodWithAttribute(Type fixtureType, String
attributeName, BindingFlags bindingFlags, Boolean inherit)
at NUnit.Core.GenericTestFixture.GetSetUpMethod()
at NUnit.Core.GenericTestFixture..ctor(TestFixtureParameters parms,
Type fixtureType, Int32 assemblyKey)
at NUnit.Core.NUnitTestFixture..ctor(Type fixtureType, Int32
assemblyKey)
at NUnit.Core.Builders.NUnitTestFixtureBuilder.MakeSuite(Type type,
Int32 assemblyKey)
at NUnit.Core.AbstractFixtureBuilder.BuildFrom(Type type, Int32
assemblyKey)
at NUnit.Core.Builders.NUnitTestFixtureBuilder.BuildFrom(Type type,
Int32 assemblyKey)
at NUnit.Core.SuiteBuilderCollection.BuildFrom(Type type, Int32
assemblyKey)
at NUnit.Core.Builtins.BuildFrom(Type type, Int32 assemblyKey)
at NUnit.Core.Builders.TestAssemblyBuilder.BuildFrom(Type type, Int32
assemblyKey)
at NUnit.Core.Builders.TestAssemblyBuilder.GetFixtures(Assembly
assembly, String ns, Int32 assemblyKey)
at NUnit.Core.Builders.TestAssemblyBuilder.Build()
at NUnit.AddInRunner.NUnitTestRunner.run(ITestListener testListener,
Assembly assembly, IFilter filter)
at NUnit.AddInRunner.NUnitTestRunner.RunMember(ITestListener
testListener, Assembly assembly, MemberInfo member)
at TestDriven.TestRunner.AdaptorTestRunner.Run(ITestListener
testListener, ITraceListener traceListener, String assemblyPath, String
testPath)
at TestDriven.TestRunner.ThreadTestRunner.Runner.Run()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].

Brian

unread,
Apr 13, 2006, 10:11:30 AM4/13/06
to TestDriven.NET Users
FYI - I figured this out. My tests were generated and relying on an
older test library using the wrong version of NUnit. Fixed that
reference, recompiled, and was all set.

Jamie Cansdale

unread,
Apr 14, 2006, 7:32:01 AM4/14/06
to TestDri...@googlegroups.com
Hi Brian,

> FYI - I figured this out. My tests were generated and relying on an
> older test library using the wrong version of NUnit. Fixed that
> reference, recompiled, and was all set.
>

I'm glad you managed to fix it. Thanks for letting me know.

Jamie.

..
http://www.testdriven.net
http://weblogs.asp.net/nunitaddin

Reply all
Reply to author
Forward
0 new messages